diff options
| author | David Disseldorp <[email protected]> | 2018-12-05 13:18:38 +0100 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2018-12-07 21:54:33 -0500 |
| commit | 3beeabd5f2d1fc7a48cb887a298bc412789a1f68 (patch) | |
| tree | 4e90eb51a61c20ba599ac9063cf4a73028956607 /include/linux/timerqueue.h | |
| parent | 2d882847280e3ae1ddc95175d0fc2006e11bb63f (diff) | |
scsi: target: perform t10_wwn ID initialisation in target_alloc_device()
Initialise the t10_wwn vendor, model and revision defaults when a device is
allocated instead of when it's enabled. This ensures that custom vendor or
model strings set prior to enablement are not later overwritten with
default values.
The TRANSPORT_FLAG_PASSTHROUGH conditional can be dropped for the following
reasons:
- target_core_pscsi overwrites the defaults in the
pscsi_configure_device() callback.
+ the contents is then only used for ConfigFS via
$pscsi_dev/statistics/scsi_lu/vend, etc.
- target_core_user doesn't touch the defaults, nor are they used for
anything outside of ConfigFS.
Signed-off-by: David Disseldorp <[email protected]>
Reviewed-by: Roman Bolshakov <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions