android: ion: remove the list of attachments
authorCho KyongHo <pullip.cho@samsung.com>
Mon, 12 Feb 2018 00:45:03 +0000 (09:45 +0900)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:21:53 +0000 (20:21 +0300)
commit48ea61cb305b2fa8cdeb2e68f59499287b8f809d
tree613c99852b256ee78f85ded6aa4c5159d71150c1
parent003e621805f9699cea5f9c38be3497269893a551
android: ion: remove the list of attachments

dma_buf also has the list of attachments. ion_buffer.attachments is
redundant. So, let's remove it.
dma_buf.attachment should be accessed with dma_buf.lock held. Holding
dma_buf.lock in begin_cpu_access() and end_cpu_access() is okay. But
it should be handled with care to prevent possible deadlock.

Change-Id: I6a4a5c74c1030874fc08684c6c84485373b47919
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
drivers/staging/android/ion/ion.c
drivers/staging/android/ion/ion.h