]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
md/raid*: Fix the set_queue_limits implementations
authorBart Van Assche <bvanassche@acm.org>
Wed, 12 Feb 2025 17:11:07 +0000 (09:11 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Feb 2025 12:34:16 +0000 (04:34 -0800)
commitf23a8020a4015e6df6bf159608ebe0b9ee82ef1d
treeb589e0e9115c27f22d35ad83950ca49be47b04e1
parent52c1d332fb85b78ff0697eca0d261b166a51a9dd
md/raid*: Fix the set_queue_limits implementations

[ Upstream commit fbe8f2fa971c537571994a0df532c511c4fb5537 ]

queue_limits_cancel_update() must only be called if
queue_limits_start_update() is called first. Remove the
queue_limits_cancel_update() calls from the raid*_set_limits() functions
because there is no corresponding queue_limits_start_update() call.

Cc: Christoph Hellwig <hch@lst.de>
Fixes: c6e56cf6b2e7 ("block: move integrity information into queue_limits")
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/linux-raid/20250212171108.3483150-1-bvanassche@acm.org/
Signed-off-by: Yu Kuai <yukuai@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/md/raid0.c
drivers/md/raid1.c
drivers/md/raid10.c