diff options
author | Inki Dae <inki.dae@samsung.com> | 2013-07-22 12:42:35 +0900 |
---|---|---|
committer | Marek Szyprowski <m.szyprowski@samsung.com> | 2014-05-15 07:20:53 +0200 |
commit | b6e01b19eb07007421a5d8362da2cac7a16dc646 (patch) | |
tree | 2133e1037c120d879faba1a1b8c11e08ddd7cb9a /include | |
parent | b39435eabbeac37c2d8d1010ffeae8079a3de3eb (diff) | |
download | linux-3.10-b6e01b19eb07007421a5d8362da2cac7a16dc646.tar.gz linux-3.10-b6e01b19eb07007421a5d8362da2cac7a16dc646.tar.bz2 linux-3.10-b6e01b19eb07007421a5d8362da2cac7a16dc646.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; }; |