kernel_optimize_test/drivers/s390/scsi
Benjamin Block 8155eb0785 scsi: zfcp: implicitly refresh port-data diagnostics when reading sysfs
This patch adds implicit updates to the sysfs entries that read the
diagnostic data stored in the "caching buffer" for Exchange Port Data.

An update is triggered once the buffer is older than ZFCP_DIAG_MAX_AGE
milliseconds (5s). This entails sending an Exchange Port Data command to
the FCP-Channel, and during its ingress path updating the cached data and
the timestamp. To prevent multiple concurrent userspace-applications from
triggering this update in parallel we synchronize all of them using a
wait-queue (waiting threads are interruptible; the updating thread is not).

Link: https://lore.kernel.org/r/c145b5cfc99a63b6a018b1184fbd27bb09c955f5.1572018132.git.bblock@linux.ibm.com
Reviewed-by: Steffen Maier <maier@linux.ibm.com>
Signed-off-by: Benjamin Block <bblock@linux.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2019-10-28 22:16:15 -04:00
..
Makefile scsi: zfcp: diagnostics buffer caching and use for exchange port data 2019-10-28 22:16:14 -04:00
zfcp_aux.c scsi: zfcp: introduce sysfs interface for diagnostics of local SFP transceiver 2019-10-28 22:16:15 -04:00
zfcp_ccw.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
zfcp_dbf.c scsi: zfcp: silence all W=1 build warnings for existing kdoc 2018-11-15 15:01:18 -05:00
zfcp_dbf.h scsi: zfcp: silence remaining kdoc warnings in header files 2018-11-15 15:01:18 -05:00
zfcp_def.h scsi: zfcp: diagnostics buffer caching and use for exchange port data 2019-10-28 22:16:14 -04:00
zfcp_diag.c scsi: zfcp: implicitly refresh port-data diagnostics when reading sysfs 2019-10-28 22:16:15 -04:00
zfcp_diag.h scsi: zfcp: implicitly refresh port-data diagnostics when reading sysfs 2019-10-28 22:16:15 -04:00
zfcp_erp.c scsi: zfcp: fix GCC compiler warning emitted with -Wmaybe-uninitialized 2019-07-11 21:04:23 -04:00
zfcp_ext.h scsi: zfcp: introduce sysfs interface for diagnostics of local SFP transceiver 2019-10-28 22:16:15 -04:00
zfcp_fc.c scsi: s390: zfcp_fc: use sg helper to iterate over scatterlist 2019-06-20 15:21:33 -04:00
zfcp_fc.h scsi: zfcp: silence remaining kdoc warnings in header files 2018-11-15 15:01:18 -05:00
zfcp_fsf.c scsi: zfcp: support retrieval of SFP Data via Exchange Port Data 2019-10-28 22:16:15 -04:00
zfcp_fsf.h scsi: zfcp: support retrieval of SFP Data via Exchange Port Data 2019-10-28 22:16:15 -04:00
zfcp_qdio.c s390/qdio: make SBAL address array type-safe 2019-02-07 11:57:07 +01:00
zfcp_qdio.h scsi: zfcp: silence remaining kdoc warnings in header files 2018-11-15 15:01:18 -05:00
zfcp_reqlist.h scsi: zfcp: silence remaining kdoc warnings in header files 2018-11-15 15:01:18 -05:00
zfcp_scsi.c scsi: zfcp: signal incomplete or error for sync exchange config/port data 2019-10-28 22:16:14 -04:00
zfcp_sysfs.c scsi: zfcp: implicitly refresh port-data diagnostics when reading sysfs 2019-10-28 22:16:15 -04:00
zfcp_unit.c scsi: zfcp: fix to prevent port_remove with pure auto scan LUNs (only sdevs) 2019-05-29 21:52:31 -04:00