Thread (5 messages) 5 messages, 3 authors, 2021-04-02

Re: [PATCH v2] md: don't create mddev in md_open

From: Christoph Hellwig <hch@infradead.org>
Date: 2021-04-01 06:18:08

On Thu, Apr 01, 2021 at 09:34:56AM +0800, Zhao Heming wrote:
commit d3374825ce57 ("md: make devices disappear when they are no longer
needed.") introduced protection between mddev creating & removing. The
md_open shouldn't create mddev when all_mddevs list doesn't contain
mddev. With currently code logic, there will be very easy to trigger
soft lockup in non-preempt env.
As mention below, please don't make this even more of a mess than it
needs to.  We can just pick the two patches doing this from the series
I sent:

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help