Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1459531

Re: [PATCH v2 1/1] blk-mq: fix hang caused by freeze/unfreeze sequence

From Tejun Heo <tj@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH v2 1/1] blk-mq: fix hang caused by freeze/unfreeze sequence
Date 2016-08-10 21:00 +0200
Message-ID <s4GTo-n4-9@gated-at.bofh.it> (permalink)
References <s3R4t-PQ-9@gated-at.bofh.it> <s4sQp-8kn-3@gated-at.bofh.it> <s4GTo-n4-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Aug 10, 2016 at 10:42:09AM +0200, Roman Penyaev wrote:
> Hi,
> 
> On Wed, Aug 10, 2016 at 5:55 AM, Tejun Heo <tj@kernel.org> wrote:
> > Hello,
> >
> > On Mon, Aug 08, 2016 at 01:39:08PM +0200, Roman Pen wrote:
> >> Long time ago there was a similar fix proposed by Akinobu Mita[1],
> >> but it seems that time everyone decided to fix this subtle race in
> >> percpu-refcount and Tejun Heo[2] did an attempt (as I can see that
> >> patchset was not applied).
> >
> > So, I probably forgot about it while waiting for confirmation of fix.
> > Can you please verify that the patchset fixes the issue?  I can apply
> > the patchset right away.
> 
> I have not checked your patchset but according to my understanding
> it should not fix *this* issue.  What happens here is a wrong order
> of invocation of percpu_ref_reinit() and percpu_ref_kill().  So what
> was observed is the following:

Ah, understood.

Acked-by: Tejun Heo <tj@kernel.org>

I'll commit the percpu_refcnt patches too.  While they don't fix the
problem on their own, the changes are generally useful for all mode
switching use cases.

Thanks.

-- 
tejun

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 1/1] blk-mq: fix hang caused by freeze/unfreeze sequence Roman Pen <roman.penyaev@profitbricks.com> - 2016-08-08 13:40 +0200
  Re: [PATCH v2 1/1] blk-mq: fix hang caused by freeze/unfreeze  sequence Tejun Heo <tj@kernel.org> - 2016-08-10 06:00 +0200
    Re: [PATCH v2 1/1] blk-mq: fix hang caused by freeze/unfreeze  sequence Tejun Heo <tj@kernel.org> - 2016-08-10 21:00 +0200
    Re: [PATCH v2 1/1] blk-mq: fix hang caused by freeze/unfreeze sequence Roman Penyaev <roman.penyaev@profitbricks.com> - 2016-08-10 21:40 +0200
    Re: [PATCH v2 1/1] blk-mq: fix hang caused by freeze/unfreeze sequence Roman Penyaev <roman.penyaev@profitbricks.com> - 2016-08-10 22:10 +0200

csiph-web