diff options
author | Peter Oberparleiter <oberpar@linux.ibm.com> | 2025-01-31 14:02:55 +0300 |
---|---|---|
committer | Vasily Gorbik <gor@linux.ibm.com> | 2025-02-11 21:35:08 +0300 |
commit | 32ae4a2992529e2c7934e422035fad1d9b0f1fb5 (patch) | |
tree | 9421332272cac63a019cd6e79b9152d60ee46797 /scripts/extract-fwblobs | |
parent | 8d1d1e8d3345b56d3d8a64f845962c71468cd776 (diff) | |
download | linux-32ae4a2992529e2c7934e422035fad1d9b0f1fb5.tar.xz |
s390/cio: Fix CHPID "configure" attribute caching
In some environments, the SCLP firmware interface used to query a
CHPID's configured state is not supported. On these environments,
rapidly reading the corresponding sysfs attribute produces inconsistent
results:
$ cat /sys/devices/css0/chp0.00/configure
cat: /sys/devices/css0/chp0.00/configure: Operation not supported
$ cat /sys/devices/css0/chp0.00/configure
3
This occurs for example when Linux is run as a KVM guest. The
inconsistency is a result of CIO using cached results for generating
the value of the "configure" attribute while failing to handle the
situation where no data was returned by SCLP.
Fix this by not updating the cache-expiration timestamp when SCLP
returns no data. With the fix applied, the system response is
consistent:
$ cat /sys/devices/css0/chp0.00/configure
cat: /sys/devices/css0/chp0.00/configure: Operation not supported
$ cat /sys/devices/css0/chp0.00/configure
cat: /sys/devices/css0/chp0.00/configure: Operation not supported
Reviewed-by: Vineeth Vijayan <vneethv@linux.ibm.com>
Reviewed-by: Eric Farman <farman@linux.ibm.com>
Tested-by: Eric Farman <farman@linux.ibm.com>
Signed-off-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'scripts/extract-fwblobs')
0 files changed, 0 insertions, 0 deletions