blk-mq: add basic round-robin of what CPU to queue workqueue work on
authorJens Axboe <axboe@fb.com>
Wed, 7 May 2014 16:26:44 +0000 (10:26 -0600)
committerJens Axboe <axboe@fb.com>
Mon, 30 Mar 2015 18:54:47 +0000 (12:54 -0600)
commitc677e96ef169643ea6f866c5a8d54f55ecbe0f12
tree10efaab701fd20b3913f292c8f6ba9e3a73e7fc1
parent6f75a423fa582b06515de7a982abe4fc8b05eeb4
blk-mq: add basic round-robin of what CPU to queue workqueue work on

Right now we just pick the first CPU in the mask, but that can
easily overload that one. Add some basic batching and round-robin
all the entries in the mask instead.

Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c
include/linux/blk-mq.h