summaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2022-05-24 14:15:29 +0200
committerJens Axboe <axboe@kernel.dk>2022-05-28 14:15:27 +0200
commit32ac5a9b8bc511edcd81f03c3e21753789475709 (patch)
treefd8895fa48e7b7904a04310077538fbffaf1fde0 /ipc
parentblk-mq: remove __blk_execute_rq_nowait (diff)
downloadlinux-32ac5a9b8bc511edcd81f03c3e21753789475709.tar.xz
linux-32ac5a9b8bc511edcd81f03c3e21753789475709.zip
blk-mq: avoid a mess of casts for blk_end_sync_rq
Instead of trying to cast a __bitwise 32-bit integer to a larger integer and then a pointer, just allow a struct with the blk_status_t and the completion on stack and set the end_io_data to that. Use the opportunity to move the code to where it belongs and drop rather confusing comments. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Keith Busch <kbusch@kernel.org> Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com> Link: https://lore.kernel.org/r/20220524121530.943123-3-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions