diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2007-10-17 02:31:00 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-17 11:43:03 -0400 |
commit | de5e3dec421c44c999071b8f7e0580ad2ade92ae (patch) | |
tree | c327562a78335346704c382c5b220b13c9208589 /fs/fuse/fuse_i.h | |
parent | f92b99b9dccb61760b345baf40ed37f59b91f8af (diff) |
fuse: fix reserved request wake up
Use wake_up_all instead of wake_up in put_reserved_req(), otherwise it is
possible that the right task is not woken up.
Also create a separate reserved_req_waitq in addition to the blocked_waitq,
since they fulfill totally separate functions.
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/fuse/fuse_i.h')
-rw-r--r-- | fs/fuse/fuse_i.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h index 9f4603beb9e8..95bcb433d1b4 100644 --- a/fs/fuse/fuse_i.h +++ b/fs/fuse/fuse_i.h | |||
@@ -289,6 +289,9 @@ struct fuse_conn { | |||
289 | /** waitq for blocked connection */ | 289 | /** waitq for blocked connection */ |
290 | wait_queue_head_t blocked_waitq; | 290 | wait_queue_head_t blocked_waitq; |
291 | 291 | ||
292 | /** waitq for reserved requests */ | ||
293 | wait_queue_head_t reserved_req_waitq; | ||
294 | |||
292 | /** The next unique request id */ | 295 | /** The next unique request id */ |
293 | u64 reqctr; | 296 | u64 reqctr; |
294 | 297 | ||