OSDN Git Service

block: don't call part_{inc,dec}_in_flight for blk-mq devices
authorChristoph Hellwig <hch@lst.de>
Wed, 13 May 2020 10:49:34 +0000 (12:49 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 19 May 2020 15:35:24 +0000 (09:35 -0600)
commit76268f3ac0a69e76270af5f67ab239ccd796ae56
treecdb87416f6b127b8dbddd9e4cf4727af5e0463ff
parentb2f609e191edc9c7a9dec603318461eeb23f8a6b
block: don't call part_{inc,dec}_in_flight for blk-mq devices

part_inc_in_flight and part_dec_in_flight are no-ops for blk-mq queues,
so remove the calls in purely blk-mq callers.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
block/blk-merge.c