diff options
author | Jens Axboe <axboe@fb.com> | 2015-04-15 19:17:23 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-04-15 19:17:23 +0200 |
commit | dc48e56d761610da4ea1088d1bea0a030b8e3e43 (patch) | |
tree | 1e72267221c05aff3c4455910df7a787b4beff78 /block | |
parent | blk-mq: cleanup blk_mq_rq_to_pdu() (diff) | |
download | linux-dc48e56d761610da4ea1088d1bea0a030b8e3e43.tar.xz linux-dc48e56d761610da4ea1088d1bea0a030b8e3e43.zip |
aio: fix serial draining in exit_aio()
exit_aio() currently serializes killing io contexts. Each context
killing ends up having to do percpu_ref_kill(), which in turns has
to wait for an RCU grace period. This can take a long time, depending
on the number of contexts. And there's no point in doing them serially,
when we could be waiting for all of them in one fell swoop.
This patches makes my fio thread offload test case exit 0.2s instead
of almost 6s.
Reviewed-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions