You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
dm: return early from dm_pr_call() if DM device is suspended
[ Upstream commite120a5f1e7] Otherwise PR ops may be issued while the broader DM device is being reconfigured, etc. Fixes:9c72bad1f3("dm: call PR reserve/unreserve on each underlying device") Signed-off-by: Mike Snitzer <snitzer@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
b3f5cc0cc0
commit
b7e2d64d67
@@ -3003,6 +3003,11 @@ static int dm_call_pr(struct block_device *bdev, iterate_devices_callout_fn fn,
|
||||
goto out;
|
||||
ti = dm_table_get_target(table, 0);
|
||||
|
||||
if (dm_suspended_md(md)) {
|
||||
ret = -EAGAIN;
|
||||
goto out;
|
||||
}
|
||||
|
||||
ret = -EINVAL;
|
||||
if (!ti->type->iterate_devices)
|
||||
goto out;
|
||||
|
||||
Reference in New Issue
Block a user