diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2008-04-30 03:54:45 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-30 11:29:51 -0400 |
commit | 4dbf930ed6c1f8aa992937d0461f8f70d4004aad (patch) | |
tree | 978e8da5bbc97a3cfc9b44b810b0f9521154886e /fs | |
parent | 5559b8f4d1f630b8614b6c8e13b8bf6c9c45d7d7 (diff) |
fuse: fix sparse warnings
fs/fuse/dev.c:306:2: warning: context imbalance in 'wait_answer_interruptible' - unexpected unlock
fs/fuse/dev.c:361:2: warning: context imbalance in 'request_wait_answer' - unexpected unlock
fs/fuse/dev.c:1002:4: warning: context imbalance in 'end_io_requests' - unexpected unlock
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')
-rw-r--r-- | fs/fuse/dev.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c index bba83762c484..87250b6a8682 100644 --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c | |||
@@ -299,6 +299,7 @@ static void request_end(struct fuse_conn *fc, struct fuse_req *req) | |||
299 | 299 | ||
300 | static void wait_answer_interruptible(struct fuse_conn *fc, | 300 | static void wait_answer_interruptible(struct fuse_conn *fc, |
301 | struct fuse_req *req) | 301 | struct fuse_req *req) |
302 | __releases(fc->lock) __acquires(fc->lock) | ||
302 | { | 303 | { |
303 | if (signal_pending(current)) | 304 | if (signal_pending(current)) |
304 | return; | 305 | return; |
@@ -315,8 +316,8 @@ static void queue_interrupt(struct fuse_conn *fc, struct fuse_req *req) | |||
315 | kill_fasync(&fc->fasync, SIGIO, POLL_IN); | 316 | kill_fasync(&fc->fasync, SIGIO, POLL_IN); |
316 | } | 317 | } |
317 | 318 | ||
318 | /* Called with fc->lock held. Releases, and then reacquires it. */ | ||
319 | static void request_wait_answer(struct fuse_conn *fc, struct fuse_req *req) | 319 | static void request_wait_answer(struct fuse_conn *fc, struct fuse_req *req) |
320 | __releases(fc->lock) __acquires(fc->lock) | ||
320 | { | 321 | { |
321 | if (!fc->no_interrupt) { | 322 | if (!fc->no_interrupt) { |
322 | /* Any signal may interrupt this */ | 323 | /* Any signal may interrupt this */ |
@@ -987,6 +988,7 @@ static void end_requests(struct fuse_conn *fc, struct list_head *head) | |||
987 | * locked). | 988 | * locked). |
988 | */ | 989 | */ |
989 | static void end_io_requests(struct fuse_conn *fc) | 990 | static void end_io_requests(struct fuse_conn *fc) |
991 | __releases(fc->lock) __acquires(fc->lock) | ||
990 | { | 992 | { |
991 | while (!list_empty(&fc->io)) { | 993 | while (!list_empty(&fc->io)) { |
992 | struct fuse_req *req = | 994 | struct fuse_req *req = |