aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/mpt3sas/mpi/mpi2_ioc.h
diff options
context:
space:
mode:
authorMartin Wilck <[email protected]>2022-01-27 14:13:51 +0000
committerMartin K. Petersen <[email protected]>2022-02-08 04:06:13 +0000
commit7cddf7e8d1e88603d0e86997259fdec98da6f70a (patch)
treed351f665c539a1ef258210fb5f886f50d17d992d /drivers/scsi/mpt3sas/mpi/mpi2_ioc.h
parentscsi: lpfc: Remove redundant flush_workqueue() call (diff)
downloadkernel-7cddf7e8d1e88603d0e86997259fdec98da6f70a.tar.gz
kernel-7cddf7e8d1e88603d0e86997259fdec98da6f70a.zip
scsi: core: Make "access_state" sysfs attribute always visible
If a SCSI device handler module is loaded after some SCSI devices have already been probed (e.g. via request_module() by dm-multipath), the "access_state" and "preferred_path" sysfs attributes remain invisible for these devices, although the handler is attached and live. The reason is that the visibility is only checked when the sysfs attribute group is first created. This results in an inconsistent user experience depending on the load order of SCSI low-level drivers vs. device handler modules. This patch changes user space API: attempting to read the "access_state" or "preferred_path" attributes will now result in -EINVAL rather than -ENODEV for devices that have no device handler, and tests for the existence of these attributes will have a different result. Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Hannes Reinecke <[email protected]> Signed-off-by: Martin Wilck <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt3sas/mpi/mpi2_ioc.h')
0 files changed, 0 insertions, 0 deletions