scsi: iscsi: Add helper functions to manage iscsi_cls_conn
authorWenchao Hao <haowenchao@huawei.com>
Thu, 10 Mar 2022 01:57:57 +0000 (20:57 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 15 Mar 2022 04:19:50 +0000 (00:19 -0400)
commitad515cada7dac3cdf5e1ad77a0ed696f5f34e0ab
tree9547702575aadff819a99128788e7cf5bd47d939
parente1b353e7a31dcaf47c234812c46a2db9cd5be584
scsi: iscsi: Add helper functions to manage iscsi_cls_conn

 - iscsi_alloc_conn(): Allocate and initialize iscsi_cls_conn

 - iscsi_add_conn(): Expose iscsi_cls_conn to userspace via sysfs

 - iscsi_remove_conn(): Remove iscsi_cls_conn from sysfs

Link: https://lore.kernel.org/r/20220310015759.3296841-2-haowenchao@huawei.com
Reviewed-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Wenchao Hao <haowenchao@huawei.com>
Signed-off-by: Wu Bo <wubo40@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_transport_iscsi.c
include/scsi/scsi_transport_iscsi.h