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

Mikulas Patocka mpatocka at redhat.com
Thu Jul 23 18:39:29 UTC 2020



On Thu, 23 Jul 2020, Mike Snitzer wrote:

> 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

Yes - you can change it.

Mikulas




More information about the dm-devel mailing list