[PATCH] fuse: ensure progress in read and write
authorMiklos Szeredi <miklos@szeredi.hu>
Fri, 6 Jan 2006 08:19:42 +0000 (00:19 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 6 Jan 2006 16:33:56 +0000 (08:33 -0800)
commit6ad84acab972f4dfc78e6fdb04c419f82c497d29
treed1a1370c158fbbf42b5e6d66e5f8046ac7bb9485
parent3ec870d524c9150add120475c8ddcfa50574f98e
[PATCH] fuse: ensure progress in read and write

In direct_io mode, send at least one page per reqest.  Previously it was
possible that reqests with zero data were sent, and hence the read/write
didn't make any progress, resulting in an infinite (though interruptible)
loop.

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/file.c