]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - drivers/scsi/scsi_transport_iscsi.c
iscsi class: fix get_host_stats return code when not supported
authorMike Christie <michaelc@cs.wisc.edu>
Sat, 12 Jul 2014 20:51:50 +0000 (15:51 -0500)
committerChristoph Hellwig <hch@lst.de>
Fri, 1 Aug 2014 12:16:39 +0000 (08:16 -0400)
commit719e5874d0777b575720249d3ece3dbde3efb452
treeaac14a23dd7932ea0393c6a384329f6e935cc5cf
parent2f7608fc5e6c8a70df3ce31406feee70a42458ba
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>
drivers/scsi/scsi_transport_iscsi.c