Handle errors from disabled PSI subsystem

When CONFIG_PSI_DEFAULT_DISABLED=y, the pressure system returns
"operation not supported", rather than permission denied or not
exposing the /proc/pressure files.

Fixes: https://github.com/prometheus/node_exporter/issues/1961

Signed-off-by: Ben Kochie <superq@gmail.com>
This commit is contained in:
Ben Kochie 2021-03-01 19:44:21 +01:00
parent e80863f69d
commit 46d0a0813f
No known key found for this signature in database
GPG Key ID: C646B23C9E3245F1
2 changed files with 7 additions and 0 deletions