OSDN Git Service

scsi_transport_srp: Introduce srp_wait_for_queuecommand()
authorBart Van Assche <bart.vanassche@sandisk.com>
Mon, 18 May 2015 11:22:19 +0000 (13:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Jul 2015 17:10:13 +0000 (10:10 -0700)
commit618910362d9e666cc76f2eb6280b01e6fb9a6dc3
tree49439c0e309d8204882e4227a754aa03e0a3341f
parenteb56617da9803fc1c9b84f9626f027fb0b84bf92
scsi_transport_srp: Introduce srp_wait_for_queuecommand()

commit be34c62ddf39d1931780b07a6f4241393e4ba2ee upstream.

Introduce the helper function srp_wait_for_queuecommand().
Move the definition of scsi_request_fn_active(). Add a comment
above srp_wait_for_queuecommand() that support for scsi-mq needs
to be added.

This patch does not change any functionality. A second call to
srp_wait_for_queuecommand() will be introduced in the next patch.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: James Bottomley <JBottomley@Odin.com>
Cc: Sagi Grimberg <sagig@mellanox.com>
Cc: Sebastian Parschauer <sebastian.riemer@profitbricks.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/scsi_transport_srp.c