From: Ram Pai Date: Mon, 7 Nov 2005 22:17:04 +0000 (-0500) Subject: [PATCH] umount_tree() locking change X-Git-Tag: v2.6.15-rc1~435 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70fbcdf4d252c6b17cc249cb9ac9b220cb0b863d;p=pandora-kernel.git [PATCH] umount_tree() locking change umount is done under the protection of the namespace semaphore. This can lead to intresting deadlocks when the last reference to a mount is released, if filesystem code is in sufficiently nasty state. This collects all the to-be-released-mounts and releases them after releasing the namespace semaphore. That both reduces the time we are holding namespace semaphore and gets the things more robust. Idea proposed by Al Viro. Signed-off-by: Ram Pai Signed-off-by: Al Viro Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed