summary refs log tree commit diff
path: root/block/blk-iolatency.c
diff options
context:
space:
mode:
authorAya Levin <ayal@mellanox.com>2019-02-21 14:12:02 +0200
committerDavid S. Miller <davem@davemloft.net>2019-02-21 10:38:51 -0800
commit574b1e1f457c631d356e55aaef26ee638a96d548 (patch)
tree4b256bff1f8a52ddfbec374bb5321d3d883643a1 /block/blk-iolatency.c
parent54719527fd06e80fce52b98537414035cd21e8d4 (diff)
downloadlinux-574b1e1f457c631d356e55aaef26ee638a96d548.tar.gz
devlink: Modify reply of DEVLINK_CMD_HEALTH_REPORTER_GET
Avoid sending attributes related to recovery:
DEVLINK_ATTR_HEALTH_REPORTER_GRACEFUL_PERIOD and
DEVLINK_ATTR_HEALTH_REPORTER_AUTO_RECOVER in reply to
DEVLINK_CMD_HEALTH_REPORTER_GET for a reporter which didn't register a
recover operation.
These parameters can't be configured on a reporter that did not provide
a recover operation, thus not needed to return them.

Fixes: 7afe335a8bed ("devlink: Add health get command")
Signed-off-by: Aya Levin <ayal@mellanox.com>
Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'block/blk-iolatency.c')
0 files changed, 0 insertions, 0 deletions