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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jul 23 2020 at 10:42am -0400,
Mikulas Patocka <mpatocka@xxxxxxxxxx> 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

--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel




[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux