android: ion: remove the list of attachments
authorCho KyongHo <pullip.cho@samsung.com>
Mon, 12 Feb 2018 00:45:03 +0000 (09:45 +0900)
committerSangwook Ju <sw.ju@samsung.com>
Mon, 14 May 2018 10:45:23 +0000 (19:45 +0900)
commit68d27ddc77746de96c088adc5ea236624dae915c
tree0e395539765f0102b16c1a51b3eed76708d22b94
parentd458ca439e86448dae0e41ee331a32d50c4b3578
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