diff options
author | Jens Axboe <axboe@fb.com> | 2014-05-19 17:17:48 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-05-19 19:02:47 +0200 |
commit | e93ecf602beb8439f0bdcc1fa2cbc1f31fdfb8e2 (patch) | |
tree | 030ba8a90d4ebf1f9cd5d546066d12037402eda1 /block/blk-mq.h | |
parent | block: move ioprio.c from fs/ to block/ (diff) | |
download | linux-e93ecf602beb8439f0bdcc1fa2cbc1f31fdfb8e2.tar.xz linux-e93ecf602beb8439f0bdcc1fa2cbc1f31fdfb8e2.zip |
blk-mq: move the cache friendly bitmap type of out blk-mq-tag
We will use it for the pending list in blk-mq core as well.
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk-mq.h')
-rw-r--r-- | block/blk-mq.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/block/blk-mq.h b/block/blk-mq.h index 97cfab9c092f..5e5a378962b7 100644 --- a/block/blk-mq.h +++ b/block/blk-mq.h @@ -52,4 +52,13 @@ void blk_mq_disable_hotplug(void); extern unsigned int *blk_mq_make_queue_map(struct blk_mq_tag_set *set); extern int blk_mq_update_queue_map(unsigned int *map, unsigned int nr_queues); +/* + * Basic implementation of sparser bitmap, allowing the user to spread + * the bits over more cachelines. + */ +struct blk_align_bitmap { + unsigned long word; + unsigned long depth; +} ____cacheline_aligned_in_smp; + #endif |