* [PATCH 0/2] w1 fixes for broken subsystem
@ 2013-10-06 19:13 Hans-Frieder Vogt
2013-10-06 20:45 ` Evgeniy Polyakov
0 siblings, 1 reply; 3+ messages in thread
From: Hans-Frieder Vogt @ 2013-10-06 19:13 UTC (permalink / raw)
To: gregkh, zbr; +Cc: linux-kernel
In recent kernels the 1-wire kernel modules do not work any more. The module
wire got broken in 3.11-rc1 and 3.12-rc1 introduced a further problem:
1: 3.11-rc1 introduced the automatic loading of slave modules. This blocks
modprobe, because request_module is called with a locked mutex of the w1
master.
Loading of the slave module calls w1_register_family, which calls in turn
w1_reconnect_slaves and there mutex_lock(&dev->mutex) will wait forever....
2: 3.12-rc1 introduced w1_bus_notify which assumes that all slaves have fops
defined. This is not the case for e.g. w1_smem and maybe also breaks custom
written modules.
This very small patch set is split in 2 parts:
PATCH 1/2: w1 - fix fops in w1_bus_notify
fixes problem 2 above
PATCH 2/2: w1 - call request_module with w1 master mutex unlocked
fixes problem 1 above
Please include these patches in 3.12-rc4 and in 3.11 stable.
Best regards,
Hans-Frieder Vogt e-mail: hfvogt <at> gmx .dot. net
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 0/2] w1 fixes for broken subsystem
2013-10-06 19:13 [PATCH 0/2] w1 fixes for broken subsystem Hans-Frieder Vogt
@ 2013-10-06 20:45 ` Evgeniy Polyakov
2013-10-06 20:56 ` gregkh
0 siblings, 1 reply; 3+ messages in thread
From: Evgeniy Polyakov @ 2013-10-06 20:45 UTC (permalink / raw)
To: Hans-Frieder Vogt, gregkh@linuxfoundation.org
Cc: linux-kernel@vger.kernel.org
Hi
06.10.2013, 23:13, "Hans-Frieder Vogt" <hfvogt@gmx.net>:
> In recent kernels the 1-wire kernel modules do not work any more. The module
> wire got broken in 3.11-rc1 and 3.12-rc1 introduced a further problem:
Looks like I somehow missed it and bugs got in
> 1: 3.11-rc1 introduced the automatic loading of slave modules. This blocks
> modprobe, because request_module is called with a locked mutex of the w1
> master.
> Loading of the slave module calls w1_register_family, which calls in turn
> w1_reconnect_slaves and there mutex_lock(&dev->mutex) will wait forever....
That's correct
> 2: 3.12-rc1 introduced w1_bus_notify which assumes that all slaves have fops
> defined. This is not the case for e.g. w1_smem and maybe also breaks custom
> written modules.
Isn't fops are supposed to be in the slave device?
Although they look meaningless for most of devices, I would introduce them everywhere...
But anyway, your patches fix those problems, thanks a lot.
Greg, please queue them into appropriate trees.
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 0/2] w1 fixes for broken subsystem
2013-10-06 20:45 ` Evgeniy Polyakov
@ 2013-10-06 20:56 ` gregkh
0 siblings, 0 replies; 3+ messages in thread
From: gregkh @ 2013-10-06 20:56 UTC (permalink / raw)
To: Evgeniy Polyakov; +Cc: Hans-Frieder Vogt, linux-kernel@vger.kernel.org
On Mon, Oct 07, 2013 at 12:45:44AM +0400, Evgeniy Polyakov wrote:
> Hi
>
> 06.10.2013, 23:13, "Hans-Frieder Vogt" <hfvogt@gmx.net>:
> > In recent kernels the 1-wire kernel modules do not work any more. The module
> > wire got broken in 3.11-rc1 and 3.12-rc1 introduced a further problem:
>
> Looks like I somehow missed it and bugs got in
>
> > 1: 3.11-rc1 introduced the automatic loading of slave modules. This blocks
> > modprobe, because request_module is called with a locked mutex of the w1
> > master.
> > Loading of the slave module calls w1_register_family, which calls in turn
> > w1_reconnect_slaves and there mutex_lock(&dev->mutex) will wait forever....
>
> That's correct
>
> > 2: 3.12-rc1 introduced w1_bus_notify which assumes that all slaves have fops
> > defined. This is not the case for e.g. w1_smem and maybe also breaks custom
> > written modules.
>
> Isn't fops are supposed to be in the slave device?
> Although they look meaningless for most of devices, I would introduce them everywhere...
>
> But anyway, your patches fix those problems, thanks a lot.
> Greg, please queue them into appropriate trees.
>
> Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Thanks for reviewing this, I'll queue them up in a bit.
greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-10-06 20:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-06 19:13 [PATCH 0/2] w1 fixes for broken subsystem Hans-Frieder Vogt
2013-10-06 20:45 ` Evgeniy Polyakov
2013-10-06 20:56 ` gregkh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox