[BUG] staging: android: ashmem: Deadlock during ashmem_shrink

Robert Love rlove at google.com
Tue Apr 23 17:24:04 UTC 2013


On Tue, Apr 23, 2013 at 12:20 PM, Shankar Brahadeeswaran
<shankoo77 at gmail.com> wrote:

> I'm unable to think of a straight forward way to fix this. If you have
> any suggestions please provide the same.
> If we are unable to solve this too with minor mods, as suggested by
> Dan we have to re-look at the locking in this driver.

This doesn't look insurmountable. It isn't necessary AFAICT to hold
ashmem_mutex across shmem_file_setup.

Patch attached (untested).

           Robert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ashmem-lock-fix.patch
Type: application/octet-stream
Size: 861 bytes
Desc: not available
URL: <http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/attachments/20130423/36065302/attachment.obj>


More information about the devel mailing list