diff options
author | Andy Grover <andy.grover@oracle.com> | 2009-04-09 16:09:42 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-04-10 02:21:20 +0200 |
commit | 830eb7d56c18ff4c29acd8b0bb48db404660321f (patch) | |
tree | 5c467f39c1627d3048c6bb08fa314b12c2ee7c03 /net/rds/rdma.c | |
parent | RDS: Establish connection before parsing CMSGs (diff) | |
download | linux-830eb7d56c18ff4c29acd8b0bb48db404660321f.tar.xz linux-830eb7d56c18ff4c29acd8b0bb48db404660321f.zip |
RDS: use get_user_pages_fast()
Use the new function that is simpler and faster.
Signed-off-by: Andy Grover <andy.grover@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rds/rdma.c')
-rw-r--r-- | net/rds/rdma.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/net/rds/rdma.c b/net/rds/rdma.c index e390dc70b9d9..8dc83d2caa58 100644 --- a/net/rds/rdma.c +++ b/net/rds/rdma.c @@ -150,10 +150,7 @@ static int rds_pin_pages(unsigned long user_addr, unsigned int nr_pages, { int ret; - down_read(¤t->mm->mmap_sem); - ret = get_user_pages(current, current->mm, user_addr, - nr_pages, write, 0, pages, NULL); - up_read(¤t->mm->mmap_sem); + ret = get_user_pages_fast(user_addr, nr_pages, write, pages); if (ret >= 0 && ret < nr_pages) { while (ret--) |