staging/rdma/hfi1: Convert to use get_user_pages_fast
authorMitko Haralanov <mitko.haralanov@intel.com>
Tue, 8 Dec 2015 22:10:09 +0000 (17:10 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Dec 2015 21:57:55 +0000 (13:57 -0800)
commitdef8228452f87d05bd43ac21aeaf894ca081bca4
tree67c871853465deffa80936ee0e8adaa4ac490210
parent483119a760639858ce2369a314d1bd93a3db3062
staging/rdma/hfi1: Convert to use get_user_pages_fast

Convert hfi1_get_user_pages() to use get_user_pages_fast(),
which is much fatster. The mm semaphore is still taken to
update the pinned page count but is for a much shorter
amount of time.

Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Mitko Haralanov <mitko.haralanov@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rdma/hfi1/file_ops.c
drivers/staging/rdma/hfi1/hfi.h
drivers/staging/rdma/hfi1/user_pages.c