From a6517d6b0133a79e5b34dc7066c4fbe0341179dc Mon Sep 17 00:00:00 2001 From: Ian Kent Date: Fri, 13 Jan 2012 20:41:46 +0800 Subject: [PATCH] autofs4 - fix deal with autofs4_write races I don't know how I missed this obvious mistake when I reviewed Als' patches, sorry. [ Quoting Al: Grr... Note to self: do git status *and* git stash show -p before git push. Nothing like "WTF? I'd fixed that braino" feeling ;-/ Al sent the same patch - it got broken in commit 820760efe045: "autofs4: deal with autofs4_write/autofs4_write races". ] Reported-and-tested-by: Dave Airlie Signed-off-by: Ian Kent Signed-off-by: Al Viro Signed-off-by: Linus Torvalds --- fs/autofs4/waitq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/autofs4/waitq.c b/fs/autofs4/waitq.c index 9ef5b2914407c..da8876d38a7b7 100644 --- a/fs/autofs4/waitq.c +++ b/fs/autofs4/waitq.c @@ -76,7 +76,7 @@ static int autofs4_write(struct autofs_sb_info *sbi, data += wr; bytes -= wr; } - mutex_lock(&sbi->pipe_mutex); + mutex_unlock(&sbi->pipe_mutex); set_fs(fs); -- 2.39.5