[PATCH] fuse: fix bug in aborted fuse_release_end()
commit77e7f250f88cd62844e24c42aff4d0e95969c746
authorMiklos Szeredi <miklos@szeredi.hu>
Fri, 17 Feb 2006 21:52:52 +0000 (17 13:52 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 17 Feb 2006 21:59:27 +0000 (17 13:59 -0800)
treeee14c76d87f8ac141d2fee43e40278b5fcadadd8
parenta8534adb74e23374889b84b3d97eb18da542a1b5
[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>
fs/fuse/dev.c
fs/fuse/file.c