浏览代码

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 <tom.leiming@gmail.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Ming Lei 11 年之前
父节点
当前提交
60f2df8a29
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      block/blk-mq-tag.c

+ 0 - 1
block/blk-mq-tag.c

@@ -244,7 +244,6 @@ static void bt_clear_tag(struct blk_mq_bitmap_tags *bt, unsigned int tag)
 
 
 	bs = bt_wake_ptr(bt);
 	bs = bt_wake_ptr(bt);
 	if (bs && atomic_dec_and_test(&bs->wait_cnt)) {
 	if (bs && atomic_dec_and_test(&bs->wait_cnt)) {
-		smp_mb__after_clear_bit();
 		atomic_set(&bs->wait_cnt, bt->wake_cnt);
 		atomic_set(&bs->wait_cnt, bt->wake_cnt);
 		bt_index_inc(&bt->wake_index);
 		bt_index_inc(&bt->wake_index);
 		wake_up(&bs->wait);
 		wake_up(&bs->wait);