Skip to content

Commit 0b13173

Browse files
Xiang GaoChristianKoenigAMD
authored andcommitted
dma-buf: fix stale @lock references in struct dma_buf documentation
The kernel-doc comments for vmapping_counter and vmap_ptr in struct dma_buf reference "@lock" as the protecting lock, but struct dma_buf no longer has a "lock" member. The mutex was removed in favor of using the dma_resv lock exclusively. The implementation correctly uses dma_resv_assert_held(dmabuf->resv) in dma_buf_vmap() and dma_buf_vunmap(), so update the documentation to reference @resv instead. Signed-off-by: gaoxiang17 <gaoxiang17@xiaomi.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Christian König <christian.koenig@amd.com> Link: https://lore.kernel.org/r/20260415054101.535520-1-gxxa03070307@gmail.com
1 parent 2fc87d3 commit 0b13173

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/linux/dma-buf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,13 +322,13 @@ struct dma_buf {
322322
* @vmapping_counter:
323323
*
324324
* Used internally to refcnt the vmaps returned by dma_buf_vmap().
325-
* Protected by @lock.
325+
* Protected by @resv.
326326
*/
327327
unsigned vmapping_counter;
328328

329329
/**
330330
* @vmap_ptr:
331-
* The current vmap ptr if @vmapping_counter > 0. Protected by @lock.
331+
* The current vmap ptr if @vmapping_counter > 0. Protected by @resv.
332332
*/
333333
struct iosys_map vmap_ptr;
334334

0 commit comments

Comments
 (0)