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>
Wed, 7 May 2014 16:26:44 +0000 (10:26 -0600)
commit506e931f92defdc60c1dc4aa2ff4a19a5dcd8618
tree8c0fdc0c0c4186f927246b5164396da446fbc8e5
parent5cf8c2277576fcc48966b105bb42782d7929fc48
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