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

2016-03-19 Thread Laurent Pinchart
Hi Mauro, On Monday 14 March 2016 16:16:29 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:

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

2016-03-19 Thread Mauro Carvalho Chehab
Em Thu, 17 Mar 2016 13:38:56 +0200 Laurent Pinchart escreveu: > Hi Mauro, > > On Monday 14 March 2016 16:16:29 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 spin

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

2016-03-14 Thread kbuild test robot
Hi Mauro, [auto build test WARNING on sailus-media/master] [also build test WARNING on next-20160314] [cannot apply to v4.5] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Mauro-Carvalho-Cheha

[PATCH] [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 mm/slub.c:12