block: make blk-throttle preserve the issuing task on delayed bios
commit671058fb2a2aac4e70f01b316b06bc59b98bd138
authorTejun Heo <tj@kernel.org>
Mon, 5 Mar 2012 21:15:29 +0000 (5 13:15 -0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 6 Mar 2012 20:27:24 +0000 (6 21:27 +0100)
tree6c49961409ad0e3c16b5e2027f515cafecedf39a
parent4f85cb96d9d2fbbb7160db855a6beee1baced5e5
block: make blk-throttle preserve the issuing task on delayed bios

Make blk-throttle call bio_associate_current() on bios being delayed
such that they get issued to block layer with the original io_context.
This allows stacking blk-throttle and cfq-iosched propio policies.
bios will always be issued with the correct ioc and blkcg whether it
gets delayed by blk-throttle or not.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-throttle.c