Re: [PATCH] drm/via: reduce no need mutex_lock area

2020-10-17 Thread Sam Ravnborg
Hi Bernard. On Fri, Aug 14, 2020 at 01:30:19AM -0700, Bernard Zhao wrote: > In function via_mem_alloc`s error branch, DRM_ERROR is protected > in the mutex_lock(&dev->struct_mutex) area. > >From the code, we see that DRM_ERROR is just an error log print > without any struct element, there is no ne

[re-send][PATCH] drm/via: reduce no need mutex_lock area

2020-09-03 Thread Bernard
In function via_mem_alloc`s error branch, DRM_ERROR is protected in the mutex_lock(&dev->struct_mutex) area. >From the code, we see that DRM_ERROR is just an error log print without any struct element, there is no need to protect this. Signed-off-by: Bernard Zhao --- drivers/gpu/drm/via/via_mm.c

[PATCH] drm/via: reduce no need mutex_lock area

2020-08-17 Thread Bernard Zhao
In function via_mem_alloc`s error branch, DRM_ERROR is protected in the mutex_lock(&dev->struct_mutex) area. >From the code, we see that DRM_ERROR is just an error log print without any struct element, there is no need to protect this. Signed-off-by: Bernard Zhao --- drivers/gpu/drm/via/via_mm.c