summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2015-04-15 11:17:23 -0600
committerJens Axboe <axboe@fb.com>2015-04-15 11:17:23 -0600
commitdc48e56d761610da4ea1088d1bea0a030b8e3e43 (patch)
tree1e72267221c05aff3c4455910df7a787b4beff78 /block
parent2963e3f7e8e3465895897a175560210120b932ac (diff)
downloadlinux-dc48e56d761610da4ea1088d1bea0a030b8e3e43.tar.gz
linux-dc48e56d761610da4ea1088d1bea0a030b8e3e43.tar.bz2
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