Skip to content

Commit 719e587

Browse files
Mike ChristieChristoph Hellwig
authored andcommitted
iscsi class: fix get_host_stats return code when not supported
When the get_host_stats call was not supported we were returing EINVAL. This has us return ENOSYS, because for software iscsi drivers where there is no host it is ok to not have this callout. Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Acked-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Christoph Hellwig <hch@lst.de>
1 parent 2f7608f commit 719e587

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/scsi/scsi_transport_iscsi.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3429,7 +3429,7 @@ iscsi_get_host_stats(struct iscsi_transport *transport, struct nlmsghdr *nlh)
34293429
char *buf;
34303430

34313431
if (!transport->get_host_stats)
3432-
return -EINVAL;
3432+
return -ENOSYS;
34333433

34343434
priv = iscsi_if_transport_lookup(transport);
34353435
if (!priv)

0 commit comments

Comments
 (0)