target: go through normal processing for zero-length REQUEST_SENSE
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 7 Sep 2012 15:30:37 +0000 (17:30 +0200)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 7 Sep 2012 18:32:54 +0000 (11:32 -0700)
commit6abbdf38363f064c8a50150c9b709682764483b3
tree9b2d5d37bdda6ffeac9a7308e3468e9063773327
parent32a8811ff164f882712c17946e58e52444f464a7
target: go through normal processing for zero-length REQUEST_SENSE

Now that spc_emulate_request_sense has been taught to process zero-length
REQUEST SENSE correctly, drop the special handling of unit attention
conditions from transport_generic_new_cmd.  However, for now REQUEST SENSE
will be the only command that goes through emulation for zero lengths.

(nab: Fix up zero-length check in transport_generic_new_cmd)

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_transport.c