]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
infiniband: remove the second argument of k[un]map_atomic()
authorCong Wang <amwang@redhat.com>
Fri, 25 Nov 2011 15:14:20 +0000 (23:14 +0800)
committerCong Wang <xiyou.wangcong@gmail.com>
Tue, 20 Mar 2012 13:48:18 +0000 (21:48 +0800)
Acked-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Cong Wang <amwang@redhat.com>
drivers/infiniband/ulp/iser/iser_memory.c

index fb88d6896b67758abd823da50303ab056fa7be5e..2033a928d34d412e8dfcf25392de852377486d26 100644 (file)
@@ -73,11 +73,11 @@ static int iser_start_rdma_unaligned_sg(struct iscsi_iser_task *iser_task,
 
                p = mem;
                for_each_sg(sgl, sg, data->size, i) {
-                       from = kmap_atomic(sg_page(sg), KM_USER0);
+                       from = kmap_atomic(sg_page(sg));
                        memcpy(p,
                               from + sg->offset,
                               sg->length);
-                       kunmap_atomic(from, KM_USER0);
+                       kunmap_atomic(from);
                        p += sg->length;
                }
        }
@@ -133,11 +133,11 @@ void iser_finalize_rdma_unaligned_sg(struct iscsi_iser_task *iser_task,
 
                p = mem;
                for_each_sg(sgl, sg, sg_size, i) {
-                       to = kmap_atomic(sg_page(sg), KM_SOFTIRQ0);
+                       to = kmap_atomic(sg_page(sg));
                        memcpy(to + sg->offset,
                               p,
                               sg->length);
-                       kunmap_atomic(to, KM_SOFTIRQ0);
+                       kunmap_atomic(to);
                        p += sg->length;
                }
        }