target: Don't set WBUS16 or SYNC bits in INQUIRY response
authorRoland Dreier <roland@purestorage.com>
Tue, 14 Feb 2012 00:18:16 +0000 (16:18 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sat, 25 Feb 2012 22:37:49 +0000 (14:37 -0800)
commiteffc6cc8828257c32c37635e737f14fd6e19ecd7
tree07e44ddcae2a8384bd29faa4565b9c290176ab80
parent089461dda1770c10fea0b988ff74519a9be81d7e
target: Don't set WBUS16 or SYNC bits in INQUIRY response

SPC-4 says about the WBUS16 and SYNC bits:

    The meanings of these fields are specific to SPI-5 (see 6.4.3).
    For SCSI transport protocols other than the SCSI Parallel
    Interface, these fields are reserved.

We don't have a SPI fabric module, so we should never set these bits.
(The comment was misleading, since it only mentioned Sync but the
actual code set WBUS16 too).

Signed-off-by: Roland Dreier <roland@purestorage.com>
Cc: stable@vger.kernel.org
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_cdb.c