]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] libiscsi: Check TMF state before sending PDU
authorMike Christie <michaelc@cs.wisc.edu>
Wed, 11 Nov 2009 22:34:32 +0000 (16:34 -0600)
committerJames Bottomley <James.Bottomley@suse.de>
Fri, 4 Dec 2009 18:01:36 +0000 (12:01 -0600)
commit8b6d3613de159dfb9e9523a8b799333cf6978c06
treee73691cdb5a2a52a9b56ad9f06183f49bb4e3d49
parent4deba5954cc0389ad12279ee22770f3ee2b247ff
[SCSI] libiscsi: Check TMF state before sending PDU

Patch and mail from both MikeC and HannesR:

Before we're trying to send a PDU we have to check whether a TMF
is active. If so and if the PDU will be affected by the TMF
we should allow only Data-out PDUs to be sent.

If fast_abort is set, no Data-out PDUs will be sent while
a LUN reset is being processed for a affected LUN.

fast_abort is now ingored during a ABORT TASK tmf. We will not
send any Data-outs for a task if the task is being aborted.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/libiscsi.c
include/scsi/iscsi_proto.h