diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-12-11 11:35:08 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-12-18 11:41:55 +1000 |
commit | 43d1337cbe087ed24ffceadfd5ac311b6a0e4bfa (patch) | |
tree | bc6daab9923b7b1f174d2ac80eaa70067537d1be /drivers/gpu/drm/drm_drv.c | |
parent | b8673b648ad5443e00fa07a4104d0d64855d2ca0 (diff) | |
download | blackbird-op-linux-43d1337cbe087ed24ffceadfd5ac311b6a0e4bfa.tar.gz blackbird-op-linux-43d1337cbe087ed24ffceadfd5ac311b6a0e4bfa.zip |
drm: rip out dev->ioctl_count tracking
Now dev->ioctl_count tries to prevent the device from disappearing if
it's still in use. And if we'd actually need this code it would be
hopelessly racy and broken.
But luckily the vfs already takes care of this. So we can just rip it
out.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_drv.c')
-rw-r--r-- | drivers/gpu/drm/drm_drv.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c index d9137e49c4e8..9fd4dd476d33 100644 --- a/drivers/gpu/drm/drm_drv.c +++ b/drivers/gpu/drm/drm_drv.c @@ -315,7 +315,6 @@ long drm_ioctl(struct file *filp, if (drm_device_is_unplugged(dev)) return -ENODEV; - atomic_inc(&dev->ioctl_count); ++file_priv->ioctl_count; if ((nr >= DRM_CORE_IOCTL_COUNT) && @@ -410,7 +409,6 @@ long drm_ioctl(struct file *filp, if (kdata != stack_kdata) kfree(kdata); - atomic_dec(&dev->ioctl_count); if (retcode) DRM_DEBUG("ret = %d\n", retcode); return retcode; |