Files
linux-stable-mirror/include/linux
Penghe Geng 270277c2ab mmc: core: Avoid bitfield RMW for claim/retune flags
commit 901084c51a upstream.

Move claimed and retune control flags out of the bitfield word to
avoid unrelated RMW side effects in asynchronous contexts.

The host->claimed bit shared a word with retune flags. Writes to claimed
in __mmc_claim_host() or retune_now in mmc_mq_queue_rq() can overwrite
other bits when concurrent updates happen in other contexts, triggering
spurious WARN_ON(!host->claimed). Convert claimed, can_retune,
retune_now and retune_paused to bool to remove shared-word coupling.

Fixes: 6c0cedd1ef ("mmc: core: Introduce host claiming by context")
Fixes: 1e8e55b670 ("mmc: block: Add CQE support")
Cc: stable@vger.kernel.org
Suggested-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Penghe Geng <pgeng@nvidia.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2026-03-25 11:05:50 +01:00
..
2026-03-04 07:19:34 -05:00
2026-03-04 07:20:03 -05:00
2025-05-09 09:43:58 +02:00
2025-11-02 22:14:42 +09:00
2026-03-25 11:05:40 +01:00
2025-09-11 17:20:27 +02:00
2026-01-11 15:22:07 +01:00
2025-07-06 11:00:16 +02:00
2025-02-08 09:52:02 +01:00
2026-01-11 15:21:37 +01:00
2025-08-15 12:08:42 +02:00
2025-01-23 17:21:12 +01:00
2026-01-11 15:21:52 +01:00
2025-02-01 18:37:51 +01:00
2026-03-04 07:19:32 -05:00
2025-08-01 09:47:30 +01:00
2026-01-11 15:22:20 +01:00