]> git.baikalelectronics.ru Git - kernel.git/commit
drm/mode: reduce lock hold in addfb2
authorDave Airlie <airlied@redhat.com>
Fri, 15 Apr 2016 05:10:39 +0000 (15:10 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 22 Apr 2016 00:42:25 +0000 (10:42 +1000)
commit8ffbd5f01dd0c0b71fab7dd7fc0fd095a929ddc8
tree7caf1eed8c28e95ea8ac04912df93770f7877045
parentb967840efc8e2097e9cb6625b41695c7f5d736d4
drm/mode: reduce lock hold in addfb2

No need to hold the lock while assigning the variable.

Daniel wrote:
"Not sure why exactly I put that under the lock, but the only thing that
can race here is rmfb while addfb2 is still doing it's thing, with a
correctly guess (easy to do since they're fully deterministic) fb_id."

Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_crtc.c