]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix a LOR in vfs_busy() where, after msleeping, it would lock
authorRick Macklem <rmacklem@FreeBSD.org>
Sat, 23 Apr 2011 11:22:48 +0000 (11:22 +0000)
committerRick Macklem <rmacklem@FreeBSD.org>
Sat, 23 Apr 2011 11:22:48 +0000 (11:22 +0000)
commitc65c068a5f9c28db69e4b6b9cb261f2686f6c089
tree39ec7be656a9fd85e5de051f09d259121956453c
parent6f5fe81e02806ee3854171b2b5450f6286ae4ee1
Fix a LOR in vfs_busy() where, after msleeping, it would lock
the mutexes in the wrong order for the case where the
MBF_MNTLSTLOCK is set. I believe this did have the
potential for deadlock. For example, if multiple nfsd threads
called vfs_busyfs(), which calls vfs_busy() with MBF_MNTLSTLOCK.
Thanks go to pho for catching this during his testing.

Tested by: pho
Submitted by: kib
MFC after: 2 weeks
sys/kern/vfs_subr.c