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)
commitc715def51591a874a9fcfdc9a05d543e8797e697
tree393cf502f7578c1e848de6471b50dc23a68d7469
parent613ba71619cfe0e0a4b855aa1a2e337fab2dd416
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: bdb8d06dfefd ("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