Re: [PATCH v19 24/30] drm/shmem-helper: Optimize unlocked get_pages_sgt()

2024-01-25 Thread Boris Brezillon
On Fri, 5 Jan 2024 21:46:18 +0300 Dmitry Osipenko wrote: > SGT isn't refcounted. Once SGT pointer has been obtained, it remains the > same for both locked and unlocked get_pages_sgt(). Return cached SGT > directly without taking a potentially expensive lock. > > Signed-off-by: Dmitry Osipenko

[PATCH v19 24/30] drm/shmem-helper: Optimize unlocked get_pages_sgt()

2024-01-05 Thread Dmitry Osipenko
SGT isn't refcounted. Once SGT pointer has been obtained, it remains the same for both locked and unlocked get_pages_sgt(). Return cached SGT directly without taking a potentially expensive lock. Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/drm_gem_shmem_helper.c | 12 1 file