autofs4 - fix deal with autofs4_write races
PATCH 1/1 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 <[email protected]>
---
fs/autofs4/waitq.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
fs/autofs4/waitq.c +1 -1
@@ -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);
Quoted 4 lines · Ian Kent
I don't know how I missed this obvious mistake when I reviewed Als' patches, sorry.
Signed-off-by Ian Kent <[email protected]>
Tested-by Dave Airlie <[email protected]>
Same as Al's one I acked earlier.
Dave.
Quoted 19 lines
---
fs/autofs4/waitq.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)fs/autofs4/waitq.c +1
-1@@ -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);