android_kernel_xiaomi_sm8350/fs/fuse
Miklos Szeredi d3406ffa4a [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>
2006-04-11 06:18:47 -07:00
..
dev.c [PATCH] Make most file operations structs in fs/ const 2006-03-28 09:16:06 -08:00
dir.c [PATCH] Make most file operations structs in fs/ const 2006-03-28 09:16:06 -08:00
file.c [PATCH] fuse: fix oops in fuse_send_readpages() 2006-04-11 06:18:47 -07:00
fuse_i.h [PATCH] Make most file operations structs in fs/ const 2006-03-28 09:16:06 -08:00
inode.c
Makefile