diff options
author | Inki Dae <inki.dae@samsung.com> | 2013-07-22 12:42:35 +0900 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-11-18 11:43:39 +0900 |
commit | 1c2486404dac7b2835574a7aa73e12312f4d5401 (patch) | |
tree | cbd0b9f24ce96156f177fede4627aa74418d9158 /include | |
parent | ccd9fc42ccafc0513efcf7a92fa42a0a3760550d (diff) | |
download | linux-3.10-1c2486404dac7b2835574a7aa73e12312f4d5401.tar.gz linux-3.10-1c2486404dac7b2835574a7aa73e12312f4d5401.tar.bz2 linux-3.10-1c2486404dac7b2835574a7aa73e12312f4d5401.zip |
dmabuf-sync: fix sync lock to multiple read
This patch fixes the issue that a sync object is unlocked
when shared_cnt is bigger than 1 and sobj->access_type is write.
the below number means shared_cnt and three sync objects share
one buffer,
r r r w
when write locked 1 2 3 3 <- blocked
when read unlocked 2
when read unlocked 1
when read unlocked 1 <- waked up
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/dmabuf-sync.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/dmabuf-sync.h b/include/linux/dmabuf-sync.h index 2502ad61a69..963ba99088c 100644 --- a/include/linux/dmabuf-sync.h +++ b/include/linux/dmabuf-sync.h @@ -24,7 +24,6 @@ struct dmabuf_sync_reservation { struct mutex lock; atomic_t shared_cnt; unsigned int accessed_type; - unsigned int shared; unsigned int locked; }; |