]> git.baikalelectronics.ru Git - kernel.git/commit
blk-throttle: process limit change only through one function
authorVivek Goyal <vgoyal@redhat.com>
Mon, 7 Mar 2011 20:05:14 +0000 (21:05 +0100)
committerJens Axboe <jaxboe@fusionio.com>
Mon, 7 Mar 2011 20:05:14 +0000 (21:05 +0100)
commitcf7e3199fb6dd1a0b10e6e0edb82b8466e6a3d7e
treea4666d35b6e11f92eb0fc4506bdd7f65185a7aa6
parent861c952813ba53d5f4fce87443e435e55a66dd9a
blk-throttle: process limit change only through one function

With the help of cgroup interface one can go and upate the bps/iops
limits of existing group. Once the limits are udpated, a thread is
woken up to see if some blocked group needs recalculation based on new
limits and needs to be requeued.

There was also a piece of code where I was checking for group limit
update when a fresh bio comes in. This patch gets rid of that piece of
code and keeps processing the limit change at one place
throtl_process_limit_change().  It just keeps the code simple and easy
to understand.

Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
block/blk-throttle.c