From: Junxiao Bi Subject: Re: dm bufio: fix deadlock issue with loop device Date: Mon, 8 Jul 2019 16:54:07 -0700 Message-ID: <8a971872-ca3e-303d-02cd-cf5990bb6ab0@oracle.com> References: <20190702231456.19121-1-junxiao.bi@oracle.com> <20190703162106.GA13984@redhat.com> <1aa51708-1c1b-bd12-72ed-ecbae39043f7@oracle.com> <460d932b-e801-e2f8-9d0d-d3c96e1bb1ce@oracle.com> <20190708141427.GA8414@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20190708141427.GA8414@redhat.com> Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Mike Snitzer Cc: honglei.wang@oracle.com, dm-devel@redhat.com, mpatocka@redhat.com, agk@redhat.com List-Id: dm-devel.ids On 7/8/19 7:14 AM, Mike Snitzer wrote: > On Fri, Jul 05 2019 at 4:24pm -0400, > Junxiao Bi wrote: > >> Hi Mike, >> >> Do i make sense on this? > No, you haven't made your chase for this change. Sorry. > > Please refine the patch header to _not_ get into context you have from > a vendor kernel. I know you say this is hard to reproduce, etc. Thanks, I will refine it in v2. > But > you don't even get into ther usecase where the issue was seen. Was this > DM thinp? DM cache? Something else? it's thin-provision target. Customer is using docker. > > Please be as concise and precise as possible. Saying that shrinker is > the same context as loop doesn't imply a whole lot to me (relative to > why this is prone to deadlock). > > To restate my concern: if __GFP_FS isn't set then why does your patch > help at all? If __GFP_FS is set, then that changes things.. If __GFP_FS isn't set, the behavior is the same with w/o this patch. If it is set and the mutex was already hold by others, shrinker stop, deadlock avoid. Thanks, Junxiao. > > Mike