diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2006-02-17 13:52:52 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-02-17 13:59:27 -0800 |
commit | 77e7f250f88cd62844e24c42aff4d0e95969c746 (patch) | |
tree | ee14c76d87f8ac141d2fee43e40278b5fcadadd8 /fs/fuse/dev.c | |
parent | a8534adb74e23374889b84b3d97eb18da542a1b5 (diff) | |
download | linux-stable-77e7f250f88cd62844e24c42aff4d0e95969c746.tar.gz linux-stable-77e7f250f88cd62844e24c42aff4d0e95969c746.tar.bz2 linux-stable-77e7f250f88cd62844e24c42aff4d0e95969c746.zip |
[PATCH] fuse: fix bug in aborted fuse_release_end()
There's a rather theoretical case of the BUG triggering in
fuse_reset_request():
- iget() fails because of OOM after a successful CREATE_OPEN request
- during IO on the resulting RELEASE request the connection is aborted
Fix and add warning to fuse_reset_request().
Signed-off-by: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/fuse/dev.c')
-rw-r--r-- | fs/fuse/dev.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c index f556a0d5c0d3..0c9a2ee54c91 100644 --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c @@ -66,6 +66,12 @@ static void restore_sigs(sigset_t *oldset) sigprocmask(SIG_SETMASK, oldset, NULL); } +/* + * Reset request, so that it can be reused + * + * The caller must be _very_ careful to make sure, that it is holding + * the only reference to req + */ void fuse_reset_request(struct fuse_req *req) { int preallocated = req->preallocated; |