BACKPORT: FROMLIST: dma-buf: Move sysfs work out of DMA-BUF export path
We have identified an animation lag issue on our Android 14-6.1 product which seems to be caused by contention in the rwsem lock during the dmabuf request process. It appears that other processes are holding sysfs read locks, resulting in the blocking of dmabuf sysfs node creation. We encountered an issue in android14-6.1 that is similar to the problem described in [1]. So we cherry-pick this commit to android14-6.1. [1] https://android-review.googlesource.com/c/kernel/common/+/2111974 Bug: 311282169 Bug: 206979019 Link: https://lore.kernel.org/lkml/CABdmKX2dNYhgOYdrrJU6-jt6F=LjCidbKhR6t4F7yaa0SPr+-A@mail.gmail.com/T/ Signed-off-by:Dezhi Huang <huangdezhi@hihonor.com> Conflicts: include/linux/dma-buf.h 1. The android14-6.1 KMI is frozen, and the modification to struct dma_buf_sysfs_entry in the original patch triggers ABI check failures. Instead of an anonymous union, use the existing struct kobject directly as a work_struct with type punning. Signed-off-by:
T.J. Mercier <tjmercier@google.com> Change-Id: Ic0386849b6b248b0a72215633fc1a50782455bac
Loading
Please sign in to comment