block: don't call blk_status_to_errno in blk_update_request
authorChristoph Hellwig <hch@lst.de>
Mon, 18 Oct 2021 08:45:18 +0000 (10:45 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 19 Oct 2021 11:54:57 +0000 (05:54 -0600)
commit8a7d267b4a2c71a5ff5dd9046abea7117c7d0ac2
tree4f2844e6e5b09b6b29b1604701fbc967f4614b04
parentdb9a02baa23267c695a44234a0f2f4607992780e
block: don't call blk_status_to_errno in blk_update_request

We only need to call it to resolve the blk_status_t -> errno mapping for
tracing, so move the conversion into the tracepoints that are not called
at all when tracing isn't enabled.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c
include/trace/events/block.h
kernel/trace/blktrace.c