IB/srp: Do not register memory if never_register has been set
authorBart Van Assche <bart.vanassche@sandisk.com>
Thu, 12 May 2016 17:51:01 +0000 (10:51 -0700)
committerDoug Ledford <dledford@redhat.com>
Fri, 13 May 2016 17:47:07 +0000 (13:47 -0400)
commitc222a39f0d2652ff32e10a95979af9bf906b9844
tree51a78e2c113b6cfc4048175196bd23573cdc4170
parent509c5f33f4f6dc328d96bf4099ef6589739f22d4
IB/srp: Do not register memory if never_register has been set

This makes it easier to test the code path that does not use
memory registration (srp_map_sg_dma()).

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Sagi Grimberg <sagi@grimberg.me>
Cc: Laurence Oberman <loberman@redhat.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/srp/ib_srp.c