]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Vito said:
authorPeter Zijlstra <peterz@infradead.org>
Sat, 16 Jul 2011 13:30:42 +0000 (23:30 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 26 Jul 2011 05:04:39 +0000 (15:04 +1000)
commit62253588c401ae1f0ec1a352329aebe783089eae
tree1581f1ab9569be8c7d9ccfc6e3e7739d84d32bc5
parent42c760eaba951255004dae0fdc0e79d1ce024ebf
Vito said:

: The system has many usb disks coming and going day to day, with their
: respective bdi's having min_ratio set to 1 when inserted.  It works for
: some time until eventually min_ratio can no longer be set, even when the
: active set of bdi's seen in /sys/class/bdi/*/min_ratio doesn't add up to
: anywhere near 100.
:
: This then leads to an unrelated starvation problem caused by write-heavy
: fuse mounts being used atop the usb disks, a problem the min_ratio setting
: at the underlying devices bdi effectively prevents.

Fix this leakage by resetting the bdi min_ratio when unregistering the
BDI.

Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Reported-by: Vito Caputo <lkml@pengaru.com>
Cc: Wu Fengguang <fengguang.wu@intel.com>
Cc: Miklos Szeredi <miklos@szeredi.hu>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/backing-dev.c