[dm-devel] dm raid: avoid busy error on scrubbing message
Mike Snitzer
snitzer at redhat.com
Tue Dec 18 19:50:20 UTC 2018
On Tue, Dec 18 2018 at 11:35am -0500,
Heinz Mauelshagen <heinzm at redhat.com> wrote:
> Sending a check/repair message infrequently leads to -EBUSY
> as oposed to identifying an active resync properly.
> Cause is raid_message() testing recovery bits in a racy way.
>
> Fix by calling decipher_sync_action() from raid_message()
> to identify the idle state of the RAID device properly.
>
> Signed-off-by: Heinz Mauelshagen <heinzm at redhat.com>
Applied:
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git/commit/?h=dm-4.21&id=74694bcbdf7e28a5ad548cdda9ac56d30be00d13
Thanks,
Mike
More information about the dm-devel
mailing list