]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Since vn_lock() with the LK_RETRY flag never returns an error
authorrmacklem <rmacklem@FreeBSD.org>
Tue, 9 Jun 2009 15:18:01 +0000 (15:18 +0000)
committerrmacklem <rmacklem@FreeBSD.org>
Tue, 9 Jun 2009 15:18:01 +0000 (15:18 +0000)
commitaf60635fabd4377e14bc00ac6a5d6723f01308ed
tree59bd9058cc068204f3c2b26031c42c9c5f2277b6
parent77373ed4681d2d7d7a25a619e896c065e12976c6
Since vn_lock() with the LK_RETRY flag never returns an error
for FreeBSD-CURRENT, the code that checked for and returned the
error was broken. Change it to check for VI_DOOMED set after
vn_lock() and return an error for that case. I believe this
should only happen for forced dismounts.

Approved by: kib (mentor)
sys/fs/nfsclient/nfs_clvnops.c