]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
A refinement of change 232351 to avoid a race with a forcible unmount.
authormckusick <mckusick@FreeBSD.org>
Wed, 28 Mar 2012 21:21:19 +0000 (21:21 +0000)
committermckusick <mckusick@FreeBSD.org>
Wed, 28 Mar 2012 21:21:19 +0000 (21:21 +0000)
commit8c9c124d251f62554e56b118b1ddaa70205b3b85
tree10030561d05cd2b87ce963df2246de55b590037f
parent5edfb77dd3a164bb9d2d40c6604faa6c9f3dce15
A refinement of change 232351 to avoid a race with a forcible unmount.
While we have a snapshot vnode unlocked to avoid a deadlock with another
inode in the same inode block being updated, the filesystem containing
it may be forcibly unmounted. When that happens the snapshot vnode is
revoked. We need to check for that condition and fail appropriately.

This change will be included along with 232351 when it is MFC'ed to 9.

Spotted by:  kib
Reviewed by: kib
sys/ufs/ffs/ffs_inode.c