diff options
author | Luo Meng <[email protected]> | 2022-11-30 10:09:45 +0800 |
---|---|---|
committer | Mike Snitzer <[email protected]> | 2022-12-01 11:43:41 -0500 |
commit | 19eb1650afeb1aa86151f61900e9e5f1de5d8d02 (patch) | |
tree | afd38c05d9c5d82b6c997eb945eb04704fc57d85 /drivers/usb/cdns3/cdns3-debug.h | |
parent | 6b9973861cb2e96dcd0bb0f1baddc5c034207c5c (diff) |
dm thin: resume even if in FAIL mode
If a thinpool set fail_io while suspending, resume will fail with:
device-mapper: resume ioctl on vg-thinpool failed: Invalid argument
The thin-pool also can't be removed if an in-flight bio is in the
deferred list.
This can be easily reproduced using:
echo "offline" > /sys/block/sda/device/state
dd if=/dev/zero of=/dev/mapper/thin bs=4K count=1
dmsetup suspend /dev/mapper/pool
mkfs.ext4 /dev/mapper/thin
dmsetup resume /dev/mapper/pool
The root cause is maybe_resize_data_dev() will check fail_io and return
error before called dm_resume.
Fix this by adding FAIL mode check at the end of pool_preresume().
Cc: [email protected]
Fixes: da105ed5fd7e ("dm thin metadata: introduce dm_pool_abort_metadata")
Signed-off-by: Luo Meng <[email protected]>
Signed-off-by: Mike Snitzer <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions