From: Yishai Hadas Date: Thu, 10 May 2012 20:28:05 +0000 (+0300) Subject: IB/core: Fix mismatch between locked and pinned pages X-Git-Tag: v3.2.19~92 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d704f9240928c3ca88ea166c5175a9c66ea48564;p=pandora-kernel.git IB/core: Fix mismatch between locked and pinned pages commit c4870eb874ac16dccef40e1bc7a002c7e9156adc upstream. Commit bc3e53f682d9 ("mm: distinguish between mlocked and pinned pages") introduced a separate counter for pinned pages and used it in the IB stack. However, in ib_umem_get() the pinned counter is incremented, but ib_umem_release() wrongly decrements the locked counter. Fix this. Signed-off-by: Yishai Hadas Reviewed-by: Christoph Lameter Signed-off-by: Roland Dreier Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed