diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2006-04-10 22:54:49 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-04-11 06:18:47 -0700 |
commit | d3406ffa4af8af1d7c14cff06e003eb0a557d4ad (patch) | |
tree | e521174613659a167f56e9890c403f9fa95a50ca /fs/fuse/dev.c | |
parent | 3e16f6afb267c0256416d481862ce8019c33417d (diff) |
[PATCH] fuse: fix oops in fuse_send_readpages()
During heavy parallel filesystem activity it was possible to Oops the kernel.
The reason is that read_cache_pages() could skip pages which have already been
inserted into the cache by another task. Occasionally this may result in zero
pages actually being sent, while fuse_send_readpages() relies on at least one
page being in the request.
So check this corner case and just free the request instead of trying to send
it.
Reported and tested by Konstantin Isakov.
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')
0 files changed, 0 insertions, 0 deletions