[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120113124145.31045.22056.stgit@web.messagingengine.com>
Date: Fri, 13 Jan 2012 20:41:46 +0800
From: Ian Kent <raven@...maw.net>
To: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Al Viro <viro@....linux.org.uk>, Dave Airlie <airlied@...il.com>,
Kernel Mailing List <linux-kernel@...r.kernel.org>
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.
Signed-off-by: Ian Kent <raven@...maw.net>
---
fs/autofs4/waitq.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/autofs4/waitq.c b/fs/autofs4/waitq.c
index 9ef5b29..da8876d 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);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists