From: Bart Van Assche <bvanassche@acm.org>
To: Jens Axboe <axboe@kernel.dk>
Cc: linux-block@vger.kernel.org,
Christoph Hellwig <hch@infradead.org>,
Damien Le Moal <dlemoal@kernel.org>,
Bart Van Assche <bvanassche@acm.org>
Subject: [PATCH 0/4] Fix sparse warnings in the block layer
Date: Fri, 4 Dec 2026 14:10:58 -0800 [thread overview]
Message-ID: <cover.1796422079.git.bvanassche@acm.org> (raw)
Hi Jens,
This patch series fixes sparse warnings in the block layer core, in
blk-mq and in the block tracepoints. These warnings are caused by the
__bitwise annotations of blk_opf_t and blk_mq_req_flags_t and by the
__rcu annotation of struct request_queue::queue_hw_ctx. The warnings
fixed by patch 1/4 are only reported by sparse after a pending sparse
change has been merged (I plan to merge that sparse change soon). These
patches do not modify the code generated for x86-64 systems. Please
consider this patch series for the next merge window.
Thanks,
Bart.
Bart Van Assche (4):
block: Fix sparse warnings in blk_op_str()
block: Fix a sparse warning in str_to_blk_op()
blk-mq: Fix sparse warnings in block_rq_tag_wait
blk-mq: Use RCU helpers when accessing q->queue_hw_ctx
block/blk-core.c | 7 ++++---
block/blk-mq.c | 22 ++++++++++++++++++----
include/trace/events/block.h | 2 +-
3 files changed, 23 insertions(+), 8 deletions(-)
next reply other threads:[~2026-12-04 22:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 22:10 Bart Van Assche [this message]
2026-12-04 22:10 ` [PATCH 1/4] block: Fix sparse warnings in blk_op_str() Bart Van Assche
2026-12-04 22:11 ` [PATCH 2/4] block: Fix a sparse warning in str_to_blk_op() Bart Van Assche
2026-12-04 22:11 ` [PATCH 3/4] blk-mq: Fix sparse warnings in block_rq_tag_wait Bart Van Assche
2026-12-04 22:11 ` [PATCH 4/4] blk-mq: Use RCU helpers when accessing q->queue_hw_ctx Bart Van Assche
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1796422079.git.bvanassche@acm.org \
--to=bvanassche@acm.org \
--cc=axboe@kernel.dk \
--cc=dlemoal@kernel.org \
--cc=hch@infradead.org \
--cc=linux-block@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox