Date: Fri, 14 Aug 2009 10:59:17 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/nfsclient nfs_subs.c Message-ID: <200908141059.n7EAxdBY055717@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
kib 2009-08-14 10:59:17 UTC
FreeBSD src repository
Modified files:
sys/nfsclient nfs_subs.c
Log:
SVN rev 196205 on 2009-08-14 10:59:17Z by kib
In nfs_upgrade_vnlock(), assert that the vnode is locked. It is for all
pathes, as far as I see and testing seems to confirm it. Comparision of
old_lock with LK_SHARED make sense only if vnode is locked by current
thread.
When downgrading, pass LK_RETRY to the vn_lock(), since otherwise
vn_lock() unlocks the doomed vnode, causing extra unlock.
Reported and tested by: pho
Approved by: re (rwatson)
MFC after: 3 weeks
Revision Changes Path
1.164 +12 -15 src/sys/nfsclient/nfs_subs.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908141059.n7EAxdBY055717>
