scsi: cxgb4i: add wait_for_completion()
authorVarun Prakash <varun@chelsio.com>
Thu, 10 Jan 2019 17:59:28 +0000 (23:29 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 12 Jan 2019 03:33:49 +0000 (22:33 -0500)
commit9e8f1c79831424d30c0e3df068be7f4a244157c9
tree9b3157c61a9aa424ca35c610a38d43a7356e4409
parent4a01ab60f55041b1ccc760e43258a5b3aeeca1bc
scsi: cxgb4i: add wait_for_completion()

In case of ->set_param() and ->bind_conn() cxgb4i driver does not wait for
cmd completion, this can create race conditions, to avoid this add
wait_for_completion().

Signed-off-by: Varun Prakash <varun@chelsio.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/cxgbi/cxgb3i/cxgb3i.c
drivers/scsi/cxgbi/cxgb4i/cxgb4i.c
drivers/scsi/cxgbi/libcxgbi.c
drivers/scsi/cxgbi/libcxgbi.h