From: Laura Abbott Date: Tue, 25 Feb 2014 19:01:19 +0000 (-0800) Subject: cma: Remove potential deadlock situation X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~27^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ee793a62fa8c544f8b844e6e87b2d8e8836b219;p=pandora-kernel.git cma: Remove potential deadlock situation CMA locking is currently very coarse. The cma_mutex protects both the bitmap and avoids concurrency with alloc_contig_range. There are several situations which may result in a deadlock on the CMA mutex currently, mostly involving AB/BA situations with alloc and free. Fix this issue by protecting the bitmap with a mutex per CMA region and use the existing mutex for protecting against concurrency with alloc_contig_range. Signed-off-by: Laura Abbott Signed-off-by: Marek Szyprowski --- Reading git-diff-tree failed