ed8b670409
drm_ioctl is called with the Big Kernel Lock held, which shows up very high in statistics on vfs_ioctl. Moving the lock into the drm_ioctl function itself makes sure we blame the right subsystem and it gets us one step closer to eliminating the locked version of fops->ioctl. Since drm_ioctl does not require the lock itself, we only need to hold it while calling the specific handler. The 32 bit conversion handlers do not interact with any other code, so they don't need the BKL here either and can just call drm_ioctl. As a bonus, this cleans up all the other users of drm_ioctl which now no longer have to find the inode or call lock_kernel. [airlied: squashed the non-driver bits of the second patch in here, this provides the flag for drivers to use to select unlocked ioctls - but doesn't modify any drivers]. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Cc: David Airlie <airlied@linux.ie> Cc: dri-devel@lists.sourceforge.net Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Dave Airlie <airlied@redhat.com> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
nouveau_acpi.c | ||
nouveau_backlight.c | ||
nouveau_bios.c | ||
nouveau_bios.h | ||
nouveau_bo.c | ||
nouveau_calc.c | ||
nouveau_channel.c | ||
nouveau_connector.c | ||
nouveau_connector.h | ||
nouveau_crtc.h | ||
nouveau_debugfs.c | ||
nouveau_display.c | ||
nouveau_dma.c | ||
nouveau_dma.h | ||
nouveau_dp.c | ||
nouveau_drv.c | ||
nouveau_drv.h | ||
nouveau_encoder.h | ||
nouveau_fb.h | ||
nouveau_fbcon.c | ||
nouveau_fbcon.h | ||
nouveau_fence.c | ||
nouveau_gem.c | ||
nouveau_hw.c | ||
nouveau_hw.h | ||
nouveau_i2c.c | ||
nouveau_i2c.h | ||
nouveau_ioc32.c | ||
nouveau_irq.c | ||
nouveau_mem.c | ||
nouveau_notifier.c | ||
nouveau_object.c | ||
nouveau_reg.h | ||
nouveau_sgdma.c | ||
nouveau_state.c | ||
nouveau_ttm.c | ||
nv04_crtc.c | ||
nv04_cursor.c | ||
nv04_dac.c | ||
nv04_dfp.c | ||
nv04_display.c | ||
nv04_fb.c | ||
nv04_fbcon.c | ||
nv04_fifo.c | ||
nv04_graph.c | ||
nv04_instmem.c | ||
nv04_mc.c | ||
nv04_timer.c | ||
nv04_tv.c | ||
nv10_fb.c | ||
nv10_fifo.c | ||
nv10_graph.c | ||
nv17_gpio.c | ||
nv17_tv_modes.c | ||
nv17_tv.c | ||
nv17_tv.h | ||
nv20_graph.c | ||
nv40_fb.c | ||
nv40_fifo.c | ||
nv40_graph.c | ||
nv40_mc.c | ||
nv50_crtc.c | ||
nv50_cursor.c | ||
nv50_dac.c | ||
nv50_display.c | ||
nv50_display.h | ||
nv50_evo.h | ||
nv50_fbcon.c | ||
nv50_fifo.c | ||
nv50_graph.c | ||
nv50_instmem.c | ||
nv50_mc.c | ||
nv50_sor.c | ||
nvreg.h |