]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9093330b5e4cf917c81a731b71e9b487cd51fe37
tree9547702575aadff819a99128788e7cf5bd47d939
parentf59e2b9e82cd54477c565b2564c22da1c254edff
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