Re: [RESEND] drivercore: deferral race condition fix

2014-04-09 Thread Peter Ujfalusi
On 04/08/2014 04:35 PM, Peter Ujfalusi wrote: > On 04/08/2014 03:43 PM, Grant Likely wrote: >>> diff --git a/drivers/base/dd.c b/drivers/base/dd.c >>> index 06051767393f..80703de6e6ad 100644 >>> --- a/drivers/base/dd.c >>> +++ b/drivers/base/dd.c >>> @@ -53,6 +53,10 @@ static LIST_HEAD(deferred_pro

Re: [RESEND] drivercore: deferral race condition fix

2014-04-08 Thread Peter Ujfalusi
On 04/08/2014 03:43 PM, Grant Likely wrote: > On Thu, 3 Apr 2014 10:12:07 +0300, Peter Ujfalusi > wrote: >> When the kernel is built with CONFIG_PREEMPT it is possible to reach a state >> when all modules loaded but some driver still stuck in the deferred list >> and there is a need for external

Re: [RESEND] drivercore: deferral race condition fix

2014-04-08 Thread Peter Ujfalusi
On 04/08/2014 03:47 PM, Grant Likely wrote: > On Tue, Apr 8, 2014 at 3:27 AM, Grant Likely > wrote: >> On Thu, 3 Apr 2014 10:40:59 +0100, Mark Brown wrote: >>> On Thu, Apr 03, 2014 at 10:12:07AM +0300, Peter Ujfalusi wrote: When the kernel is built with CONFIG_PREEMPT it is possible to reac

Re: [RESEND] drivercore: deferral race condition fix

2014-04-08 Thread Grant Likely
On Thu, 3 Apr 2014 10:12:07 +0300, Peter Ujfalusi wrote: > When the kernel is built with CONFIG_PREEMPT it is possible to reach a state > when all modules loaded but some driver still stuck in the deferred list > and there is a need for external event to kick the deferred queue to probe > these dr

Re: [RESEND] drivercore: deferral race condition fix

2014-04-08 Thread Grant Likely
On Tue, Apr 8, 2014 at 3:27 AM, Grant Likely wrote: > On Thu, 3 Apr 2014 10:40:59 +0100, Mark Brown wrote: >> On Thu, Apr 03, 2014 at 10:12:07AM +0300, Peter Ujfalusi wrote: >> > When the kernel is built with CONFIG_PREEMPT it is possible to reach a >> > state >> > when all modules loaded but so

Re: [RESEND] drivercore: deferral race condition fix

2014-04-08 Thread Grant Likely
On Thu, 3 Apr 2014 10:40:59 +0100, Mark Brown wrote: > On Thu, Apr 03, 2014 at 10:12:07AM +0300, Peter Ujfalusi wrote: > > When the kernel is built with CONFIG_PREEMPT it is possible to reach a state > > when all modules loaded but some driver still stuck in the deferred list > > and there is a ne

Re: [RESEND] drivercore: deferral race condition fix

2014-04-03 Thread Mark Brown
On Thu, Apr 03, 2014 at 10:12:07AM +0300, Peter Ujfalusi wrote: > When the kernel is built with CONFIG_PREEMPT it is possible to reach a state > when all modules loaded but some driver still stuck in the deferred list > and there is a need for external event to kick the deferred queue to probe > th

[RESEND] drivercore: deferral race condition fix

2014-04-03 Thread Peter Ujfalusi
When the kernel is built with CONFIG_PREEMPT it is possible to reach a state when all modules loaded but some driver still stuck in the deferred list and there is a need for external event to kick the deferred queue to probe these drivers. The issue has been observed on embedded systems with CONFI