[SCSI] tgt: remove the code to build sense
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Tue, 13 Mar 2007 01:07:15 +0000 (10:07 +0900)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Tue, 20 Mar 2007 15:52:59 +0000 (10:52 -0500)
commita52decafbe3fdca5e8430d4f58ffcec1f4a6302c
tree389060614fdc26f2d24f1ada502c4f640ced73e7
parentc3d2350a8420dbf9d48f5f8a0fb72117bfcbc1b0
[SCSI] tgt: remove the code to build sense

tgt notifies a LLD of the failure with sense when it hits the
user-space daemon bugs. However, tgt doesn't know anything about SCSI
devices that initiators talks to. So it's impossible to send proper
sense buffer (format and contents).

This patch changes tgt not to notify a LLD of the failure with bogus
sense. Instead, tgt just re-queues the failure command to the internal
list so that it will be freed cleanly later on when the scsi_host is
removed.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/scsi_tgt_lib.c