Skip to content
Snippets Groups Projects
Commit 435ffb2a authored by Ming Lei's avatar Ming Lei
Browse files

blk-mq: avoid a mess of casts for blk_end_sync_rq

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2083917



commit 32ac5a9b
Author: Christoph Hellwig <hch@lst.de>
Date:   Tue May 24 14:15:29 2022 +0200

    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: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarKeith Busch <kbusch@kernel.org>
Reviewed-by: default avatarChaitanya Kulkarni <kch@nvidia.com>
    Link: https://lore.kernel.org/r/20220524121530.943123-3-hch@lst.de


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>

Signed-off-by: default avatarMing Lei <ming.lei@redhat.com>
parent 6c15889e
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment