Re: [BUG] cdev_put() race condition

Greg KH
2008-12-17T21:00:31Z

On Wed, Dec 17, 2008 at 09:18:29PM +0100, Hans Verkuil wrote:
> On Wednesday 17 December 2008 20:53:29 Greg KH wrote:
> > So why is V4L different than the rest of the kernel in that it wishes to
> > do things differently?
>
> Because it has almost no proper framework to speak of and what little there
> is has been pretty much unchanged since the very beginning.

Ick.

> I'm trying to develop a decent framework that should help support upcoming
> devices and generally make life easier for v4l driver developers.
>
> And I've no idea why we don't just use the device's release() callback for
> this. I'm going to implement this right now :-)

Thanks, that makes oh so much more sense. Let me know when you've
completed it so I can make your cdev change as well.

thanks,

greg k-h