RE: [PATCH v2] ib_umem_release should decrement mm->pinned_vm from ib_umem_get

2014-08-31 Thread Shachar Raindel
Sent: Friday, August 29, 2014 12:41 AM > To: Roland Dreier > Cc: Christoph Lameter; Sean Hefty; Hal Rosenstock; linux- > r...@vger.kernel.org; linux-kernel@vger.kernel.org; > t...@rgmadvisors.com; Yishai Hadas; Or Gerlitz; Haggai Eran; Shawn Bohrer > Subject: [PATCH v2] ib_umem_release sho

[PATCH v2] ib_umem_release should decrement mm->pinned_vm from ib_umem_get

2014-08-28 Thread Shawn Bohrer
From: Shawn Bohrer In debugging an application that receives -ENOMEM from ib_reg_mr() I found that ib_umem_get() can fail because the pinned_vm count has wrapped causing it to always be larger than the lock limit even with RLIMIT_MEMLOCK set to RLIM_INFINITY. The wrapping of pinned_vm occurs bec