Remove unnecessary surf_mutex locking 64/261564/1
authorJoonbum Ko <joonbum.ko@samsung.com>
Wed, 21 Jul 2021 07:53:14 +0000 (16:53 +0900)
committerJoonbum Ko <joonbum.ko@samsung.com>
Wed, 21 Jul 2021 07:53:51 +0000 (16:53 +0900)
 - This surf_mutex locking in buffer_clear
   can occur deadlock problem.

Change-Id: Ibd4fc7ff312c4ab96aa0db6c69d217979cac9622
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
src/tpl_wl_egl_thread.c

index 05f5789..819fe1a 100755 (executable)
@@ -1978,8 +1978,6 @@ _tpl_wl_egl_surface_buffer_clear(tpl_wl_egl_surface_t *wl_egl_surface)
                        }
                }
 
-               tpl_gmutex_lock(&wl_egl_surface->surf_mutex);
-
                status = wl_egl_buffer->status; /* update status */
 
                /* ACQUIRED, WAITING_SIGNALED, WAITING_VBLANK, COMMITTED */
@@ -2007,8 +2005,6 @@ _tpl_wl_egl_surface_buffer_clear(tpl_wl_egl_surface_t *wl_egl_surface)
                                                wl_egl_buffer->tbm_surface, tsq_err);
                }
 
-               tpl_gmutex_unlock(&wl_egl_surface->surf_mutex);
-
                wl_egl_buffer->status = RELEASED;
 
                tpl_gmutex_unlock(&wl_egl_buffer->mutex);