[dm-devel] [PATCH v2] dm-integrity: revert adc0daad366b to fix recalculation

Mike Snitzer snitzer at redhat.com
Thu Jul 23 18:23:29 UTC 2020


On Thu, Jul 23 2020 at 10:42am -0400,
Mikulas Patocka <mpatocka at redhat.com> wrote:

> In order to fix this race condition, we add a function dm_suspending that
> is only true during the postsuspend phase and use it instead of
> dm_suspended.
> 

...

> Index: rhel8/drivers/md/dm.c
> ===================================================================
> --- rhel8.orig/drivers/md/dm.c
> +++ rhel8/drivers/md/dm.c
> @@ -140,6 +140,7 @@ EXPORT_SYMBOL_GPL(dm_bio_get_target_bio_
>  #define DMF_NOFLUSH_SUSPENDING 5
>  #define DMF_DEFERRED_REMOVE 6
>  #define DMF_SUSPENDED_INTERNALLY 7
> +#define DMF_SUSPENDING 8

Think I prefer DMF_POST_SUSPENDING.  If you're OK with that I can fix up
the code while I stage your commit.

Thanks,
Mike




More information about the dm-devel mailing list