Re: [PATCH 1/2] scsi: iscsi: Add helper functions to alloc and add iscsi_cls_conn

2022-03-07 Thread Mike Christie
On 3/7/22 6:56 PM, Wenchao Hao wrote: > iscsi_alloc_conn() would alloc and initialize iscsi_cls_conn but do > not expose it to userspace. > iscsi_add_conn() would expose it to userspace. > > LLDs should split the alloc and register to 2 steps. > > And simplify iscsi_create_conn() with these helpe

[PATCH 1/2] scsi: iscsi: Add helper functions to alloc and add iscsi_cls_conn

2022-03-07 Thread 'Wenchao Hao' via open-iscsi
iscsi_alloc_conn() would alloc and initialize iscsi_cls_conn but do not expose it to userspace. iscsi_add_conn() would expose it to userspace. LLDs should split the alloc and register to 2 steps. And simplify iscsi_create_conn() with these helper functions. Signed-off-by: Wenchao Hao Signed-off