Re: [PATCH v2] [media] media-device: Don't call notify callbacks holding a spinlock

2016-03-14 Thread Shuah Khan
On 03/14/2016 01:19 PM, Mauro Carvalho Chehab wrote: > The notify routines may sleep. So, they can't be called in spinlock > context. Also, they may want to call other media routines that might > be spinning the spinlock, like creating a link. > > This fixes the following bug: > > [ 1839.510587]

[PATCH v2] [media] media-device: Don't call notify callbacks holding a spinlock

2016-03-14 Thread Mauro Carvalho Chehab
The notify routines may sleep. So, they can't be called in spinlock context. Also, they may want to call other media routines that might be spinning the spinlock, like creating a link. This fixes the following bug: [ 1839.510587] BUG: sleeping function called from invalid context at