IB/srp: Introduce srp_device.use_fmr
authorBart Van Assche <bart.vanassche@sandisk.com>
Tue, 11 Aug 2015 00:08:44 +0000 (17:08 -0700)
committerDoug Ledford <dledford@redhat.com>
Sun, 30 Aug 2015 22:12:38 +0000 (18:12 -0400)
commit002f15674c84fb4c38ed5237c1e7235e09c033f0
tree552c36954b317750b75d3afa071b41c248bedbb5
parent3ae95da8831e7bcf7b6da2b31cb4b50b3058f14e
IB/srp: Introduce srp_device.use_fmr

Introduce the variable srp_device.use_fmr. Leave out the dev->has_fr /
dev->has_fmr and ch->fr_pool / ch->fmr_pool checks since these are
redundant. This patch does not change any functionality but makes the
source code easier to read.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/srp/ib_srp.c
drivers/infiniband/ulp/srp/ib_srp.h