From: Miguel Ojeda <ojeda@kernel.org>
To: gregkh@linuxfoundation.org
Cc: a.hindborg@kernel.org, axboe@kernel.dk, patches@lists.linux.dev,
pgovind2@uci.edu, stable@vger.kernel.org, ytan089@ucr.edu,
Boqun Feng <boqun@kernel.org>,
linux-block@vger.kernel.org, rust-for-linux@vger.kernel.org
Subject: Re: [PATCH 6.12 0630/1536] rust: block: fix `Send` bound for `GenDisk`
Date: Sun, 8 Nov 2026 17:36:08 +0100 [thread overview]
Message-ID: <20261108163608.122524-1-ojeda@kernel.org> (raw)
In-Reply-To: <20261107135015.226523646@linuxfoundation.org>
On Sat, 07 Nov 2026 08:44:06 -0500 Greg Kroah-Hartman <gregkh@linuxfoundation.org> wrote:
>
> 6.12-stable review patch. If anyone has any objections, please let me know.
>
> ------------------
>
> From: Andreas Hindborg <a.hindborg@kernel.org>
>
> commit e502b667ee70a7fa2a578e7722672ecd4fe0eb81 upstream.
>
> The `Send` implementation for `GenDisk<T>` was conditioned on `T: Send`.
> This constrains the wrong type. `T` is the `Operations` implementation,
> which is typically a zero-sized marker type that carries no data, so `T:
> Send` says nothing about whether the data a `GenDisk` actually owns can be
> moved to another thread.
>
> A `GenDisk<T>` owns the queue data `T::QueueData` (stored as the
> `gendisk`'s `queuedata` and dropped when the `GenDisk` is dropped) and an
> `Arc<TagSet<T>>`. These are the values transferred when a `GenDisk` is sent
> across a thread boundary, so the `Send` bound must constrain exactly them.
> Bound `T::QueueData: Send` and `Arc<TagSet<T>>: Send` instead.
>
> Fixes: 3253aba3408a ("rust: block: introduce `kernel::block::mq` module")
> Cc: stable@vger.kernel.org
> Reported-by: Priya Bala Govindasamy <pgovind2@uci.edu>, Dylan Zueck <dzueck@uci.edu>, Yuan Tan <ytan089@ucr.edu>
> Closes: https://lore.kernel.org/all/cover.1780633578.git.ytan089@ucr.edu
> Signed-off-by: Yuan Tan <ytan089@ucr.edu>
> Link: https://msgid.link/20260709100100.604252-1-yuantan098@gmail.com
> [ Andreas: Fix tags to make checkpatch happy. Change summary line. ]
> Signed-off-by: Andreas Hindborg <a.hindborg@kernel.org>
> Link: https://patch.msgid.link/20260929-rust-block-for-v7-4-rc1-b4-v1-4-642a4c1aebd7@kernel.org
> Signed-off-by: Jens Axboe <axboe@kernel.dk>
> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This one breaks most Rust builds:
error[E0220]: associated type `QueueData` not found for `T`
--> rust/kernel/block/mq/gen_disk.rs:198:8
|
198 | T::QueueData: Send,
| ^^^^^^^^^ associated type `QueueData` not found
because there is no `QueueData` in 6.12.y. We would also need commit
06dad60393f2 ("rust: block: implement `Send` and `Sync` for `TagSet`")
for the other bound anyway.
I would suggest dropping the patch for the moment.
Andreas: could you please take a look and see how you would like to
resolve it, if at all?
Thanks!
Cc: Andreas Hindborg <a.hindborg@kernel.org>
Cc: Boqun Feng <boqun@kernel.org>
Cc: linux-block@vger.kernel.org
Cc: rust-for-linux@vger.kernel.org
Cheers,
Miguel
next parent reply other threads:[~2026-11-08 16:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20261107135015.226523646@linuxfoundation.org>
2026-11-08 16:36 ` Miguel Ojeda [this message]
2026-11-09 12:44 ` [PATCH 6.12 0630/1536] rust: block: fix `Send` bound for `GenDisk` Sasha Levin
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=20261108163608.122524-1-ojeda@kernel.org \
--to=ojeda@kernel.org \
--cc=a.hindborg@kernel.org \
--cc=axboe@kernel.dk \
--cc=boqun@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-block@vger.kernel.org \
--cc=patches@lists.linux.dev \
--cc=pgovind2@uci.edu \
--cc=rust-for-linux@vger.kernel.org \
--cc=stable@vger.kernel.org \
--cc=ytan089@ucr.edu \
/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