Re: Proposal to make automatic target rescans optional

2017-02-21 Thread Chris Leech
> 4- Add a specific configuration option for the sessions to disable > automatic scans, as proposed by the patch. > >Pros: Finer grain control than any other option since we have per >session configuration. > >Cons: We have to add a configuration option to iscsid. > > I believe

[PATCH] libiscsi: add lock around task lists to fix list corruption regression

2017-02-21 Thread Chris Leech
There's a rather long standing regression from commit 659743b [SCSI] libiscsi: Reduce locking contention in fast path Depending on iSCSI target behavior, it's possible to hit the case in iscsi_complete_task where the task is still on a pending list (!list_empty(>running)). When that happens the