Skip to content

block: rust: fix Send bound for GenDisk#952

Open
blktests-ci[bot] wants to merge 2 commits into
linus-master_basefrom
series/1109585=>linus-master
Open

block: rust: fix Send bound for GenDisk#952
blktests-ci[bot] wants to merge 2 commits into
linus-master_basefrom
series/1109585=>linus-master

Conversation

@blktests-ci

@blktests-ci blktests-ci Bot commented Jun 11, 2026

Copy link
Copy Markdown

Pull request for series with
subject: block: rust: fix Send bound for GenDisk
version: 3
url: https://patchwork.kernel.org/project/linux-block/list/?series=1109585

@blktests-ci

blktests-ci Bot commented Jun 11, 2026

Copy link
Copy Markdown
Author

Upstream branch: 9716c08
series: https://patchwork.kernel.org/project/linux-block/list/?series=1109585
version: 3

@blktests-ci

blktests-ci Bot commented Jun 12, 2026

Copy link
Copy Markdown
Author

Upstream branch: 2a2974b
series: https://patchwork.kernel.org/project/linux-block/list/?series=1109585
version: 3

@blktests-ci blktests-ci Bot force-pushed the series/1109585=>linus-master branch from 789ce38 to a634efa Compare June 12, 2026 22:45
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 5f78e5d to e48f9db Compare June 13, 2026 01:19
@blktests-ci

blktests-ci Bot commented Jun 13, 2026

Copy link
Copy Markdown
Author

Upstream branch: 062871f
series: https://patchwork.kernel.org/project/linux-block/list/?series=1109585
version: 3

@blktests-ci blktests-ci Bot force-pushed the series/1109585=>linus-master branch from a634efa to ef83346 Compare June 13, 2026 01:42
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch 2 times, most recently from 199644a to e6d9eb8 Compare June 17, 2026 12:02
@blktests-ci

blktests-ci Bot commented Jun 17, 2026

Copy link
Copy Markdown
Author

Upstream branch: 66affa3
series: https://patchwork.kernel.org/project/linux-block/list/?series=1109585
version: 3

@blktests-ci blktests-ci Bot force-pushed the series/1109585=>linus-master branch from ef83346 to a9662f2 Compare June 17, 2026 12:44
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from e6d9eb8 to 7d8604f Compare June 24, 2026 01:11
@blktests-ci

blktests-ci Bot commented Jun 24, 2026

Copy link
Copy Markdown
Author

Upstream branch: bade58e
series: https://patchwork.kernel.org/project/linux-block/list/?series=1109585
version: 3

@blktests-ci blktests-ci Bot force-pushed the series/1109585=>linus-master branch from a9662f2 to 8d5e586 Compare June 24, 2026 01:36
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 7d8604f to 4cc45a3 Compare June 26, 2026 08:14
@blktests-ci

blktests-ci Bot commented Jun 26, 2026

Copy link
Copy Markdown
Author

Upstream branch: 4edcdef
series: https://patchwork.kernel.org/project/linux-block/list/?series=1109585
version: 3

@blktests-ci blktests-ci Bot force-pushed the series/1109585=>linus-master branch from 8d5e586 to 0ebeb33 Compare June 26, 2026 08:56
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 4cc45a3 to 90ffd56 Compare June 29, 2026 17:14
@blktests-ci

blktests-ci Bot commented Jun 29, 2026

Copy link
Copy Markdown
Author

Upstream branch: dc59e4f
series: https://patchwork.kernel.org/project/linux-block/list/?series=1109585
version: 3

@blktests-ci blktests-ci Bot force-pushed the series/1109585=>linus-master branch from 0ebeb33 to c1c5e35 Compare June 29, 2026 17:59
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 90ffd56 to d52f35a Compare July 2, 2026 19:18
@blktests-ci

blktests-ci Bot commented Jul 2, 2026

Copy link
Copy Markdown
Author

Upstream branch: 87320be
series: https://patchwork.kernel.org/project/linux-block/list/?series=1109585
version: 3

@blktests-ci blktests-ci Bot force-pushed the series/1109585=>linus-master branch from c1c5e35 to bf0c89a Compare July 2, 2026 19:57
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from d52f35a to a644c13 Compare July 6, 2026 08:28
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: 3253aba ("rust: block: introduce `kernel::block::mq` module")
Reported-by: Priya Bala Govindasamy <pgovind2@uci.edu>
Reported-by: Dylan Zueck <dzueck@uci.edu>
Suggested-by: Andreas Hindborg <a.hindborg@kernel.org>
Signed-off-by: Yuan Tan <ytan089@ucr.edu>
@blktests-ci

blktests-ci Bot commented Jul 6, 2026

Copy link
Copy Markdown
Author

Upstream branch: 8cdeaa5
series: https://patchwork.kernel.org/project/linux-block/list/?series=1109585
version: 3

@blktests-ci blktests-ci Bot force-pushed the series/1109585=>linus-master branch from bf0c89a to 2c10400 Compare July 6, 2026 09:35
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from a644c13 to a2204c3 Compare July 7, 2026 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant