]> git.baikalelectronics.ru Git - kernel.git/commit
dm: remove useless code from dm_dispatch_clone_request
authorChristoph Hellwig <hch@lst.de>
Tue, 15 Feb 2022 10:05:39 +0000 (11:05 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 17 Feb 2022 02:39:10 +0000 (19:39 -0700)
commit145cddf64dffd1f250d91bbfaa5a40bc0c751d33
treee651ea8ca7ff18a0e40c6b68cda1e72ba0374f98
parent01d69da8c0dac4a7e210f09b2ff3b782c34d19b0
dm: remove useless code from dm_dispatch_clone_request

Both ->start_time_ns and the RQF_IO_STAT are set when the request is
allocated using blk_mq_alloc_request by dm-mpath in blk_mq_rq_ctx_init.
The block layer also ensures ->start_time_ns is only set when actually
needed.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Mike Snitzer <snitzer@redhat.com>
Link: https://lore.kernel.org/r/20220215100540.3892965-5-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/dm-rq.c