]> git.baikalelectronics.ru Git - kernel.git/commit
dma-buf: Delete the DMA-BUF attachment sysfs statistics
authorHridya Valsaraju <hridya@google.com>
Tue, 13 Jul 2021 04:07:38 +0000 (21:07 -0700)
committerChristian König <christian.koenig@amd.com>
Tue, 20 Jul 2021 09:06:59 +0000 (11:06 +0200)
commit43bdad08babc797593cc7f34f192655602c0a1a7
tree393cf502f7578c1e848de6471b50dc23a68d7469
parent1cf4aa90d78e0b9c72f46392f556a0894475395e
dma-buf: Delete the DMA-BUF attachment sysfs statistics

The DMA-BUF attachment statistics form a subset of the DMA-BUF
sysfs statistics that recently merged to the drm-misc tree. They are not
UABI yet since they have not merged to the upstream Linux kernel.

Since there has been a reported a performance regression due to the
overhead of sysfs directory creation/teardown during
dma_buf_attach()/dma_buf_detach(), this patch deletes the DMA-BUF
attachment statistics from sysfs.

Fixes: 602923ab827d ("dmabuf: Add the capability to expose DMA-BUF stats in sysfs")
Signed-off-by: Hridya Valsaraju <hridya@google.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20210713040742.2680135-1-hridya@google.com
Signed-off-by: Christian König <christian.koenig@amd.com>
Documentation/ABI/testing/sysfs-kernel-dmabuf-buffers
drivers/dma-buf/dma-buf-sysfs-stats.c
drivers/dma-buf/dma-buf-sysfs-stats.h
drivers/dma-buf/dma-buf.c
include/linux/dma-buf.h