]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: iscsi: Adjust iface sysfs attr detection
authorBaokun Li <libaokun1@huawei.com>
Wed, 1 Sep 2021 08:53:36 +0000 (16:53 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 14 Sep 2021 02:15:43 +0000 (22:15 -0400)
commit156f0d896f0e3ac66623468ae7725f581374ddd7
tree6ba2c2362f86ab9e9f600768f95cc3f378790940
parent24147f68bdad0706d105aafc3d61d01c539f466a
scsi: iscsi: Adjust iface sysfs attr detection

ISCSI_NET_PARAM_IFACE_ENABLE belongs to enum iscsi_net_param instead of
iscsi_iface_param so move it to ISCSI_NET_PARAM. Otherwise, when we call
into the driver, we might not match and return that we don't want attr
visible in sysfs. Found in code review.

Link: https://lore.kernel.org/r/20210901085336.2264295-1-libaokun1@huawei.com
Fixes: 5baf5588d994 ("scsi: iscsi: Fix iface sysfs attr detection")
Reviewed-by: Lee Duncan <lduncan@suse.com>
Signed-off-by: Baokun Li <libaokun1@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_transport_iscsi.c