On Thu, 23 Jul 2020, Mike Snitzer wrote:

> On Thu, Jul 23 2020 at 10:42am -0400,
> Mikulas Patocka <[email protected]> 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

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel

Reply via email to