IB/srp: Fix srp_map_sg_dma()
authorBart Van Assche <bart.vanassche@sandisk.com>
Fri, 3 Jun 2016 18:40:24 +0000 (11:40 -0700)
committerDoug Ledford <dledford@redhat.com>
Mon, 6 Jun 2016 23:32:59 +0000 (19:32 -0400)
commit9edba790fc52322051fd7b6589421021f0726483
treeaffa460ab62e5bdd07f8f5aaa88e7a38ee15f09d
parent249f06561fc333581e48e6d388a56e3d100d23b6
IB/srp: Fix srp_map_sg_dma()

Because patch "IB/srp: Move common code into the caller" was applied
partially srp_map_sg_dma() doesn't work properly. Fix this by
applying the remainder of that patch. See also
http://thread.gmane.org/gmane.linux.drivers.rdma/35803/focus=35811.

Fixes: 3849e44d1c4b ("IB/srp: Move common code into the caller")
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Mike Marciniszyn <mike.marciniszyn@intel.com>
Cc: Sagi Grimberg <sai@grimberg.me>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Laurence Oberman <loberman@redhat.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/srp/ib_srp.c