[PATCH 1/3] drm: kill BKL from common code

2010-08-24 Thread Arnd Bergmann
On Tuesday 24 August 2010 20:46:40 Andreas Schwab wrote: > Arnd Bergmann writes: > > > diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c > > index 4a66201..76d98f4 100644 > > --- a/drivers/gpu/drm/drm_drv.c > > +++ b/drivers/gpu/drm/drm_drv.c > > @@ -506,9 +506,9 @@ long drm_ioct

[PATCH 1/3] drm: kill BKL from common code

2010-08-24 Thread Andreas Schwab
Arnd Bergmann writes: > diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c > index 4a66201..76d98f4 100644 > --- a/drivers/gpu/drm/drm_drv.c > +++ b/drivers/gpu/drm/drm_drv.c > @@ -506,9 +506,9 @@ long drm_ioctl(struct file *filp, > if (ioctl->flags & DRM_UNLOCKED) >

Re: [PATCH 1/3] drm: kill BKL from common code

2010-08-24 Thread Arnd Bergmann
On Tuesday 24 August 2010 20:46:40 Andreas Schwab wrote: > Arnd Bergmann writes: > > > diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c > > index 4a66201..76d98f4 100644 > > --- a/drivers/gpu/drm/drm_drv.c > > +++ b/drivers/gpu/drm/drm_drv.c > > @@ -506,9 +506,9 @@ long drm_ioct

Re: [PATCH 1/3] drm: kill BKL from common code

2010-08-24 Thread Andreas Schwab
Arnd Bergmann writes: > diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c > index 4a66201..76d98f4 100644 > --- a/drivers/gpu/drm/drm_drv.c > +++ b/drivers/gpu/drm/drm_drv.c > @@ -506,9 +506,9 @@ long drm_ioctl(struct file *filp, > if (ioctl->flags & DRM_UNLOCKED) >

[PATCH 1/3] drm: kill BKL from common code

2010-07-10 Thread Arnd Bergmann
This restricts the use of the big kernel lock to the i830 and i810 device drivers. The three remaining users in common code (open, ioctl and release) get converted to a new mutex, the drm_global_mutex, making the locking stricter than the big kernel lock. This may have a performance impact, but on

[PATCH 1/3] drm: kill BKL from common code

2010-07-10 Thread Arnd Bergmann
This restricts the use of the big kernel lock to the i830 and i810 device drivers. The three remaining users in common code (open, ioctl and release) get converted to a new mutex, the drm_global_mutex, making the locking stricter than the big kernel lock. This may have a performance impact, but on