IB/srpt: Ensure that modifying the use_srq configfs attribute works
authorBart Van Assche <bart.vanassche@wdc.com>
Fri, 3 Nov 2017 23:20:56 +0000 (16:20 -0700)
committerDoug Ledford <dledford@redhat.com>
Mon, 13 Nov 2017 20:25:16 +0000 (15:25 -0500)
commit57b0c46054999479272116ba3469006343856759
tree382a39ede72f130458c6b634e4bb8e21aaae765a
parent8b6dc529ea62bc021e0cdd5b0d4342ba470b5c92
IB/srpt: Ensure that modifying the use_srq configfs attribute works

The use_srq configfs attribute is created after it is read. Hence
modify srpt_tpg_attrib_use_srq_store() such that this function
switches dynamically between non-SRQ and SRQ mode.

Reported-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/srpt/ib_srpt.c