dma-buf: dma-buf: stop mapping sg_tables on attach v2
authorChristian König <christian.koenig@amd.com>
Tue, 11 Feb 2025 14:26:16 +0000 (15:26 +0100)
committerChristian König <christian.koenig@amd.com>
Thu, 6 Mar 2025 14:21:29 +0000 (15:21 +0100)
commitde68b17d5d0716c9a02b8a6ffa34f47c8f2f7690
treeb1c66e406d7e2b83d6458f55018475edfa4cc640
parent2ce07fea3cc8b866f7955a7ce1d62b0cc1f74819
dma-buf: dma-buf: stop mapping sg_tables on attach v2

As a workaround to smoothly transit from static to dynamic DMA-buf
handling we cached the sg_table on attach if dynamic handling mismatched
between exporter and importer.

Since Dmitry and Thomas cleaned that up and also documented the lock
handling we can drop this workaround now.

V2: implement Sima's comments

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Simona Vetter <simona.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20250211163109.12200-4-christian.koenig@amd.com
drivers/dma-buf/dma-buf.c
include/linux/dma-buf.h