]> git.baikalelectronics.ru Git - kernel.git/commit
fuse: update backing_dev_info congestion state
authorMiklos Szeredi <mszeredi@suse.cz>
Wed, 17 Oct 2007 06:30:59 +0000 (23:30 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 17 Oct 2007 15:43:03 +0000 (08:43 -0700)
commita026d953479e02c67f31e85155f45414236e8aa7
tree1460ac391186be79beb79a6d4030cc387239681c
parent9e5ce9cd9eb739e8e8de623a0ed7b960c59b84a8
fuse: update backing_dev_info congestion state

Set the read and write congestion state if the request queue is close to
blocking, and clear it when it's not.

This prevents unnecessary blocking in readahead and (when writable mmaps are
allowed) writeback.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/fuse/dev.c
fs/fuse/fuse_i.h