summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2009-12-05 14:33:11 +0000
committerpjd <pjd@FreeBSD.org>2009-12-05 14:33:11 +0000
commit701c04d679b8eed0b7ed8984a58734d652752577 (patch)
tree6d0833834ed9ee6af4c611ae73a9cddb17d6dda6 /sys/vm
parent90bd91d1de8110c18b3a8e2ee001ed1096b6d294 (diff)
downloadFreeBSD-src-701c04d679b8eed0b7ed8984a58734d652752577.zip
FreeBSD-src-701c04d679b8eed0b7ed8984a58734d652752577.tar.gz
Fix deadlock when ZVOLs are present and we are replacing dead component or
calling scrub when pool is in a degraded state. It will try to taste ZVOLs, which will lead to deadlock, as ZVOL will try to acquire the same locks as replace/scrub is holding already. We can't simply skip provider based on their GEOM class, because ZVOL can have providers build on top of it and we need to skip those as well. We do it by asking for ZFS::iszvol attribute. Any ZVOL-based provider will give us positive answer and we have to skip those providers. This way we remove possibility to create ZFS pools on top of ZVOLs, but it is not very useful anyway. I believe deadlock is still possible in some very complex situations like when we have MD provider on top of UFS file on top of ZVOL. When we try to replace dead component in the pool mentioned ZVOL is based on, there might be a deadlock when ZFS will try to taste MD provider. There is no easy way to detect that, but it isn't very common. MFC after: 1 week
Diffstat (limited to 'sys/vm')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud