Skip to content

Commit 60f2df8

Browse files
ming1axboe
authored andcommitted
blk-mq: bitmap tag: remove barrier in bt_clear_tag()
The barrier isn't necessary because both atomic_dec_and_test() and wake_up() implicate one barrier. Signed-off-by: Ming Lei <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent 0289b2e commit 60f2df8

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

block/blk-mq-tag.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ static void bt_clear_tag(struct blk_mq_bitmap_tags *bt, unsigned int tag)
244244

245245
bs = bt_wake_ptr(bt);
246246
if (bs && atomic_dec_and_test(&bs->wait_cnt)) {
247-
smp_mb__after_clear_bit();
248247
atomic_set(&bs->wait_cnt, bt->wake_cnt);
249248
bt_index_inc(&bt->wake_index);
250249
wake_up(&bs->wait);

0 commit comments

Comments
 (0)