From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Snitzer Subject: Re: [PATCH v2] dm-integrity: revert adc0daad366b to fix recalculation Date: Thu, 23 Jul 2020 14:23:29 -0400 Message-ID: <20200723182328.GA3753@redhat.com> References: <20200722194536.GA28682@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com Content-Disposition: inline To: Mikulas Patocka Cc: dm-devel@redhat.com, Marian Csontos , Zdenek Kabelac List-Id: dm-devel.ids On Thu, Jul 23 2020 at 10:42am -0400, Mikulas Patocka 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