From: Mike Snitzer <snitzer@redhat.com>
To: Junxiao Bi <junxiao.bi@oracle.com>
Cc: honglei.wang@oracle.com, dm-devel@redhat.com,
mpatocka@redhat.com, agk@redhat.com
Subject: Re: dm bufio: fix deadlock issue with loop device
Date: Mon, 8 Jul 2019 20:15:29 -0400 [thread overview]
Message-ID: <20190709001529.GA10643@redhat.com> (raw)
In-Reply-To: <8a971872-ca3e-303d-02cd-cf5990bb6ab0@oracle.com>
On Mon, Jul 08 2019 at 7:54pm -0400,
Junxiao Bi <junxiao.bi@oracle.com> wrote:
> On 7/8/19 7:14 AM, Mike Snitzer wrote:
>
> >On Fri, Jul 05 2019 at 4:24pm -0400,
> >Junxiao Bi <junxiao.bi@oracle.com> 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.
OK, with loop files? (really hackish and poor performing but loopback
enabled the ability to not reinstall, or plan ahead, caused a lot of
people to use it... that is until overlayfs arrived)
> >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.
Yes.
> If it is set and the mutex was already hold by others, shrinker
> stop, deadlock avoid.
Fine, please explain how that happens in the context of existing
upstream code. Please make the case for fixing upstream.
Thanks,
Mike
next prev parent reply other threads:[~2019-07-09 0:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-02 23:14 [PATCH] dm bufio: fix deadlock issue with loop device Junxiao Bi
2019-07-03 16:21 ` Mike Snitzer
2019-07-03 17:19 ` Junxiao Bi
2019-07-05 20:24 ` Junxiao Bi
2019-07-08 14:14 ` Mike Snitzer
2019-07-08 23:54 ` Junxiao Bi
2019-07-09 0:15 ` Mike Snitzer [this message]
2019-08-08 9:13 ` [PATCH] " Mikulas Patocka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190709001529.GA10643@redhat.com \
--to=snitzer@redhat.com \
--cc=agk@redhat.com \
--cc=dm-devel@redhat.com \
--cc=honglei.wang@oracle.com \
--cc=junxiao.bi@oracle.com \
--cc=mpatocka@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.