Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Mike Christie and committed by
Christoph Hellwig
719e5874 2f7608fc

+1 -1
+1 -1
drivers/scsi/scsi_transport_iscsi.c
··· 3429 3429 char *buf; 3430 3430 3431 3431 if (!transport->get_host_stats) 3432 - return -EINVAL; 3432 + return -ENOSYS; 3433 3433 3434 3434 priv = iscsi_if_transport_lookup(transport); 3435 3435 if (!priv)