diff options
| author | Sreekanth Reddy <[email protected]> | 2021-07-26 11:54:02 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2021-07-30 01:58:35 +0000 |
| commit | 70edd2e6f652f67d854981fd67f9ad0f1deaea92 (patch) | |
| tree | c6727aa3e8092b29222b91c2b8762333212b818d /lib/netdev-notifier-error-inject.c | |
| parent | scsi: scsi_dh_rdac: Avoid crash during rdac_bus_attach() (diff) | |
| download | kernel-70edd2e6f652f67d854981fd67f9ad0f1deaea92.tar.gz kernel-70edd2e6f652f67d854981fd67f9ad0f1deaea92.zip | |
scsi: core: Avoid printing an error if target_alloc() returns -ENXIO
Avoid printing a 'target allocation failed' error if the driver
target_alloc() callback function returns -ENXIO. This return value
indicates that the corresponding H:C:T:L entry is empty.
Removing this error reduces the scan time if the user issues SCAN_WILD_CARD
scan operation through sysfs parameter on a host with a lot of empty
H:C:T:L entries.
Avoiding the printk on -ENXIO matches the behavior of the other callback
functions during scanning.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sreekanth Reddy <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions
