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

Dan Carpenter dan.carpenter at oracle.com
Mon Apr 22 14:22:18 UTC 2013

Read Al's email again:  https://lkml.org/lkml/2013/3/20/458

I don't know much about VFS locking, but the ashmem locking seems
pretty bogus to me.  Why can't multiple threads read() at the same

One thing is that it should probably be broken into different locks
instead of a mini-BKL.  Instead of taking a bad design and trying to
hack it until it doesn't crash I think it would be better to redo
the locking from scratch.

dan carpenter

More information about the devel mailing list