summaryrefslogtreecommitdiff
path: root/net/core
diff options
context:
space:
mode:
authorMitko Haralanov <mitko.haralanov@intel.com>2016-03-08 19:15:33 (GMT)
committerDoug Ledford <dledford@redhat.com>2016-03-21 19:55:25 (GMT)
commitbd3a8947de916534722b0861d865d3a809c0743c (patch)
tree0484c93f7fe8d36ca82ccaccbc8080dadf5a24c6 /net/core
parent2c97ce4f3c292e9ab75c7b6b4d9f69f0a9ee241d (diff)
downloadlinux-bd3a8947de916534722b0861d865d3a809c0743c.tar.xz
IB/hfi1: Specify mm when releasing pages
This change adds a pointer to the process mm_struct when calling hfi1_release_user_pages(). Previously, the function used the mm_struct of the current process to adjust the number of pinned pages. However, is some cases, namely when unpinning pages due to a MMU notifier call, we want to drop into that code block as it will cause a deadlock (the MMU notifiers take the process' mmap_sem prior to calling the callbacks). By allowing to caller to specify the pointer to the mm_struct, the caller has finer control over that part of hfi1_release_user_pages(). Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Reviewed-by: Dean Luick <dean.luick@intel.com> Signed-off-by: Mitko Haralanov <mitko.haralanov@intel.com> Signed-off-by: Jubin John <jubin.john@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'net/core')
0 files changed, 0 insertions, 0 deletions