aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2014-07-12 16:51:50 -0400
committerChristoph Hellwig <hch@lst.de>2014-08-01 08:16:39 -0400
commit719e5874d0777b575720249d3ece3dbde3efb452 (patch)
treeaac14a23dd7932ea0393c6a384329f6e935cc5cf
parent2f7608fc5e6c8a70df3ce31406feee70a42458ba (diff)
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>
-rw-r--r--drivers/scsi/scsi_transport_iscsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/scsi_transport_iscsi.c b/drivers/scsi/scsi_transport_iscsi.c
index 14bfa53c6f7d..534d3fb87658 100644
--- a/drivers/scsi/scsi_transport_iscsi.c
+++ b/drivers/scsi/scsi_transport_iscsi.c
@@ -3429,7 +3429,7 @@ iscsi_get_host_stats(struct iscsi_transport *transport, struct nlmsghdr *nlh)
3429 char *buf; 3429 char *buf;
3430 3430
3431 if (!transport->get_host_stats) 3431 if (!transport->get_host_stats)
3432 return -EINVAL; 3432 return -ENOSYS;
3433 3433
3434 priv = iscsi_if_transport_lookup(transport); 3434 priv = iscsi_if_transport_lookup(transport);
3435 if (!priv) 3435 if (!priv)