diff options
author | Jens Axboe <axboe@fb.com> | 2014-05-19 09:17:48 -0600 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-05-19 11:02:47 -0600 |
commit | e93ecf602beb8439f0bdcc1fa2cbc1f31fdfb8e2 (patch) | |
tree | 030ba8a90d4ebf1f9cd5d546066d12037402eda1 /block/blk-mq-tag.h | |
parent | 2667bcbbd5ed71f29b78ba69f059dbc450e07faf (diff) | |
download | linux-stable-e93ecf602beb8439f0bdcc1fa2cbc1f31fdfb8e2.tar.gz linux-stable-e93ecf602beb8439f0bdcc1fa2cbc1f31fdfb8e2.tar.bz2 linux-stable-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-tag.h')
-rw-r--r-- | block/blk-mq-tag.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/block/blk-mq-tag.h b/block/blk-mq-tag.h index 7aa9f0665489..9014269f3910 100644 --- a/block/blk-mq-tag.h +++ b/block/blk-mq-tag.h @@ -1,6 +1,8 @@ #ifndef INT_BLK_MQ_TAG_H #define INT_BLK_MQ_TAG_H +#include "blk-mq.h" + enum { BT_WAIT_QUEUES = 8, BT_WAIT_BATCH = 8, @@ -14,18 +16,13 @@ struct bt_wait_state { #define TAG_TO_INDEX(bt, tag) ((tag) >> (bt)->bits_per_word) #define TAG_TO_BIT(bt, tag) ((tag) & ((1 << (bt)->bits_per_word) - 1)) -struct blk_mq_bitmap { - unsigned long word; - unsigned long depth; -} ____cacheline_aligned_in_smp; - struct blk_mq_bitmap_tags { unsigned int depth; unsigned int wake_cnt; unsigned int bits_per_word; unsigned int map_nr; - struct blk_mq_bitmap *map; + struct blk_align_bitmap *map; unsigned int wake_index; struct bt_wait_state *bs; |