diff options
author | Wanlong Gao <gaowanlong@cn.fujitsu.com> | 2011-09-21 10:22:10 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-10-03 11:40:42 -0700 |
commit | e37143e6522a978b62ed4142741236af1f381d1d (patch) | |
tree | 6bd5a13f4143ea704465aba4ca25c1dd823b8a58 /drivers/scsi | |
parent | 10cabb78baa285840e10ab1911033e924ff29b94 (diff) | |
download | kernel_samsung_crespo-e37143e6522a978b62ed4142741236af1f381d1d.zip kernel_samsung_crespo-e37143e6522a978b62ed4142741236af1f381d1d.tar.gz kernel_samsung_crespo-e37143e6522a978b62ed4142741236af1f381d1d.tar.bz2 |
blk-cgroup: be able to remove the record of unplugged device
commit d11bb4462c4cc6ddd45c6927c617ad79fa6fb8fc upstream.
The bug is we're not able to remove the device from blkio cgroup's
per-device control files if it gets unplugged.
To reproduce the bug:
# mount -t cgroup -o blkio xxx /cgroup
# cd /cgroup
# echo "8:0 1000" > blkio.throttle.read_bps_device
# unplug the device
# cat blkio.throttle.read_bps_device
8:0 1000
# echo "8:0 0" > blkio.throttle.read_bps_device
-bash: echo: write error: No such device
After patching, the device removal will succeed.
Thanks for the comments of Paul, Zefan, and Vivek.
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Cc: Li Zefan <lizf@cn.fujitsu.com>
Cc: Paul Menage <paul@paulmenage.org>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/scsi')
0 files changed, 0 insertions, 0 deletions