On 4/10/23 21:10, Chris Leech wrote:
As discussed with Lee: you should tear down sessions related to this
namespace from the pernet ->exit callback, otherwise you end up with
session which can no longer been reached as the netlink socket is
gone.
These two follow on changes handle removing active sesions when the
namespace exits. Tested with iscsi_tcp and seems to be working for me.
Chris Leech (2):
iscsi: make session and connection lists per-net
iscsi: force destroy sesions when a network namespace exits
drivers/scsi/scsi_transport_iscsi.c | 122 ++++++++++++++++++----------
1 file changed, 79 insertions(+), 43 deletions(-)
Thanks a lot!
That's precisely what I had been looking for.
But you really shouldn't have mentioned iSCSI offloads; that was too
large an opening to _not_ comment on :-)
Cheers,
Hannes
--
Dr. Hannes Reinecke Kernel Storage Architect
hare@xxxxxxx +49 911 74053 688
SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 36809 (AG Nürnberg), Geschäftsführer: Ivo Totev, Andrew
Myers, Andrew McDonald, Martje Boudien Moerman