From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: David Fries <david@fries.net>
Cc: Belisko Marek <marek.belisko@gmail.com>,
Evgeniy Polyakov <zbr@ioremap.net>,
LKML <linux-kernel@vger.kernel.org>,
"Dr. H. Nikolaus Schaller" <hns@goldelico.com>
Subject: Re: w1: 3.14-rc7 - possible recursive locking detected
Date: Mon, 14 Apr 2014 08:04:45 -0700 [thread overview]
Message-ID: <20140414150445.GC12482@kroah.com> (raw)
In-Reply-To: <20140413222401.GE5096@spacedout.fries.net>
On Sun, Apr 13, 2014 at 05:24:01PM -0500, David Fries wrote:
> Belisko Marek,
> Here is a possible solution, could you give it a try and report back?
>
> Greg Kroah-Hartman,
> Evgeniy asked me to look into this report. I don't have the
> reporter's hardware configuration, but I wouldn't think that would be
> needed, just some w1 bus master (even W1_MASTER_GPIO might work), then
> loading the slave device and manually adding a slave device with that
> family id. Even then I didn't reproduce the reported recursive
> locking error. I saw unrelated locking reports, but not this one. I
> wrote up the included patch, but that undoes the notify changes that
> you added earlier in commit 47eba33a0997fc7, and I wanted to ask about
> that commit. Specifically these two lines,
>
> err = device_register(&sl->dev);
> ...
> + dev_set_uevent_suppress(&sl->dev, false);
> + kobject_uevent(&sl->dev.kobj, KOBJ_ADD);
>
> Wouldn't the default be to not suppress? Nothing in the W1 system
> enables suppressing so is that even needed? (I'm fine with saying
> it's a good idea).
> device_register at some point must call device_add and device_add
> calls kobject_uevent(&dev->kobj, KOBJ_ADD);
> so doesn't the KOBJ_ADD send the add a second time? As in it
> shouldn't be needed?
> Can the suppress be called before device_register to avoid the
> automatic notify, then after it returns setup the slave device as this
> patch does to avoid this problem report, and then call the KOBJ_ADD to
> make everything happy?
I really have no idea, if your fix resolves an issue, that's great, I'll
be glad to take it. I have no w1 devices to test any of this, and don't
even remember writing that kernel patch :)
thanks,
greg k-h
next prev parent reply other threads:[~2014-04-14 18:42 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-17 21:38 w1: 3.14-rc7 - possible recursive locking detected Belisko Marek
2014-03-23 21:50 ` David Fries
2014-03-24 5:55 ` Dr. H. Nikolaus Schaller
[not found] ` <698551395662480@web15j.yandex.ru>
2014-04-08 19:47 ` Belisko Marek
2014-04-13 22:24 ` David Fries
2014-04-14 13:10 ` Dr. H. Nikolaus Schaller
2014-04-14 15:04 ` Greg Kroah-Hartman [this message]
2014-04-16 6:21 ` [PATCH] w1: avoid recursive device_add David Fries
2014-04-16 20:46 ` Dr. H. Nikolaus Schaller
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=20140414150445.GC12482@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=david@fries.net \
--cc=hns@goldelico.com \
--cc=linux-kernel@vger.kernel.org \
--cc=marek.belisko@gmail.com \
--cc=zbr@ioremap.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox