kernel-hacking-2024-linux-s.../drivers/target
Roland Dreier b2eb705e00 target: Fix reporting of supported VPD pages
The current handling of VPD page 00h (Supported VPD Pages) for INQUIRY
commands has a couple of problems:

 - The page length field is incorrectly set to 3, so the entry for 86h
   (Extended INQUIRY Data) is ignored since it is in the fourth slot.
 - Even though the code handles pages B0h and B2h, those pages aren't
   mentioned in the Supported VPD Pages list, so eg the Linux SCSI stack
   won't actually try to use them.

Fix these problems and make things more robust to avoid future problems
by moving to a table of supported VPD pages, which means that any added
VPD page support will automatically get reported on page 0.

Signed-off-by: Roland Dreier <roland@purestorage.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
2011-07-22 09:37:47 +00:00
..
loopback loopback: Fix memory leak in tcm_loop_make_scsi_hba() 2011-07-22 09:37:46 +00:00
tcm_fc tcm_fc: Convert to wake_up_process and schedule_timeout_interruptible 2011-07-22 09:37:47 +00:00
Kconfig [SCSI] tcm_fc: Adding FC_FC4 provider (tcm_fc) for FCoE target (TCM - target core) support 2011-05-17 10:52:46 +04:00
Makefile [SCSI] tcm_fc: Adding FC_FC4 provider (tcm_fc) for FCoE target (TCM - target core) support 2011-05-17 10:52:46 +04:00
target_core_alua.c target: Updates from AGrover and HCH (round 3) 2011-07-22 09:37:44 +00:00
target_core_alua.h
target_core_cdb.c target: Fix reporting of supported VPD pages 2011-07-22 09:37:47 +00:00
target_core_configfs.c target: Allow for built-in target modules 2011-07-22 09:37:47 +00:00
target_core_device.c target: Make se_tmr_lock IRQ-safe 2011-07-22 09:37:45 +00:00
target_core_fabric_configfs.c target: Core cleanups from AGrover (round 1) 2011-07-22 09:37:43 +00:00
target_core_fabric_lib.c Fix common misspellings 2011-03-31 11:26:23 -03:00
target_core_file.c target: Updates from AGrover and HCH (round 3) 2011-07-22 09:37:44 +00:00
target_core_file.h target: Core cleanups from AGrover (round 1) 2011-07-22 09:37:43 +00:00
target_core_hba.c target: Core cleanups from AGrover (round 1) 2011-07-22 09:37:43 +00:00
target_core_hba.h
target_core_iblock.c target/iblock: Remove unused iblock_dev members 2011-07-22 09:37:46 +00:00
target_core_iblock.h target/iblock: Remove unused iblock_dev members 2011-07-22 09:37:46 +00:00
target_core_pr.c target: Updates from AGrover and HCH (round 3) 2011-07-22 09:37:44 +00:00
target_core_pr.h target: Core cleanups from AGrover (round 1) 2011-07-22 09:37:43 +00:00
target_core_pscsi.c target: Updates from AGrover and HCH (round 3) 2011-07-22 09:37:44 +00:00
target_core_pscsi.h target: Core cleanups from AGrover (round 1) 2011-07-22 09:37:43 +00:00
target_core_rd.c target: Updates from AGrover and HCH (round 3) 2011-07-22 09:37:44 +00:00
target_core_rd.h target: Core cleanups from AGrover (round 1) 2011-07-22 09:37:43 +00:00
target_core_scdb.c
target_core_scdb.h
target_core_stat.c target: Core cleanups from AGrover (round 1) 2011-07-22 09:37:43 +00:00
target_core_stat.h [SCSI] target: add initial statistics 2011-03-23 11:36:50 -05:00
target_core_tmr.c target: Make se_tmr_lock IRQ-safe 2011-07-22 09:37:45 +00:00
target_core_tpg.c target: Core cleanups from AGrover (round 1) 2011-07-22 09:37:43 +00:00
target_core_transport.c target: Add SCF_EMULATE_QUEUE_FULL -> transport_handle_queue_full 2011-07-22 09:37:45 +00:00
target_core_ua.c target: Updates from AGrover and HCH (round 3) 2011-07-22 09:37:44 +00:00
target_core_ua.h