--- x/block/blk.h +++ y/block/blk.h @@ -72,8 +72,6 @@ static inline int bio_queue_enter(struct struct request_queue *q = bdev_get_queue(bio->bi_bdev); if (blk_try_enter_queue(q, false)) { - rwsem_acquire_read(&q->io_lockdep_map, 0, 0, _RET_IP_); - rwsem_release(&q->io_lockdep_map, _RET_IP_); return 0; } return __bio_queue_enter(q, bio); --- x/block/blk-core.c +++ y/block/blk-core.c @@ -358,8 +358,6 @@ int __bio_queue_enter(struct request_que goto dead; } - rwsem_acquire_read(&q->io_lockdep_map, 0, 0, _RET_IP_); - rwsem_release(&q->io_lockdep_map, _RET_IP_); return 0; dead: bio_io_error(bio);