]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc7620e7920d31775a64df22a7c9c6a7ba1470379
tree9b2d5d37bdda6ffeac9a7308e3468e9063773327
parent11bd0506dc114e9b9ebb58e35d0f8ea273df2113
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