]> git.baikalelectronics.ru Git - kernel.git/commit
block: remove the error argument to the block_bio_complete tracepoint
authorChristoph Hellwig <hch@lst.de>
Wed, 3 Jun 2020 05:14:43 +0000 (07:14 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 5 Jun 2020 03:16:11 +0000 (21:16 -0600)
commit804722fc730cbdf41639bb3e8296a7accc523501
tree3e0982ad803e59fa210695684cfd58820cf9f86d
parent336a42d92a0072820d4fbe19b2834e9508e962fd
block: remove the error argument to the block_bio_complete tracepoint

The status can be trivially derived from the bio itself.  That also avoid
callers like NVMe to incorrectly pass a blk_status_t instead of the errno,
and the overhead of translating the blk_status_t to the errno in the I/O
completion fast path when no tracing is enabled.

Fixes: 6b90f31bf02b ("nvme: trace bio completion")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c
drivers/nvme/host/nvme.h
include/trace/events/block.h
kernel/trace/blktrace.c