All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] autofs4 - fix deal with autofs4_write races
@ 2012-01-13 12:41 Ian Kent
  2012-01-13 14:13 ` Dave Airlie
  0 siblings, 1 reply; 2+ messages in thread
From: Ian Kent @ 2012-01-13 12:41 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Al Viro, Dave Airlie, Kernel Mailing List

I don't know how I missed this obvious mistake when I
reviewed Als' patches, sorry.

Signed-off-by: Ian Kent <raven@themaw.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);
 


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-01-13 14:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-13 12:41 [PATCH] autofs4 - fix deal with autofs4_write races Ian Kent
2012-01-13 14:13 ` Dave Airlie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.