drm: Push dirtyfb ioctl kms locking down to drivers
Not all drivers will need take all the modeset locks for dirtyfb, so push the locking down to the drivers. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:

committed by
Dave Airlie

parent
ee61c7303f
commit
73e9efd4bd
@@ -2767,10 +2767,8 @@ int drm_mode_dirtyfb_ioctl(struct drm_device *dev,
|
||||
}
|
||||
|
||||
if (fb->funcs->dirty) {
|
||||
drm_modeset_lock_all(dev);
|
||||
ret = fb->funcs->dirty(fb, file_priv, flags, r->color,
|
||||
clips, num_clips);
|
||||
drm_modeset_unlock_all(dev);
|
||||
} else {
|
||||
ret = -ENOSYS;
|
||||
}
|
||||
|
Reference in New Issue
Block a user