]> git.karo-electronics.de Git - karo-tx-linux.git/commit
vfs: Remove useless loop in mntput_no_expire
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 14 Apr 2014 05:22:15 +0000 (22:22 -0700)
committerEric W. Biederman <ebiederm@xmission.com>
Wed, 16 Apr 2014 00:11:13 +0000 (17:11 -0700)
commit4fb7fb94c3b91a4469f5675de3f4efb5b9532ebc
treebdc10bd2da874bdba493ddbe1fb9782341526249
parent0d7d90f86f83f29a442b37c78172870f8ee28c58
vfs: Remove useless loop in mntput_no_expire

Remove the extra reference added to mnt_count by the mnt_pinned code,
and stop jumping to the top of mntput_no_expire.

When fput synchronously called mntput that extra reference count and
the loop ensured that after acct_auto_close_mnt closed all of the
pinned references mntput_no_expire would then proceed actually
unmount the filesystem.

As fput is asynchronous today there is no point in looping.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
fs/namespace.c