]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit49da510800f672cc7ec62a51a962842e96f913ae
treed1a1370c158fbbf42b5e6d66e5f8046ac7bb9485
parent4900576e200dc2c511405afdb63abe3020a782cb
[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