[PATCH] scsi: libiscsi: Fix an error handling path in 'iscsi_session_setup()'

2017-09-14 Thread Christophe JAILLET
All error handling paths in this function go through 'iscsi_host_dec_session_cnt()' except this one. Fix it and properly decrement the number of active sessions in such a case. Signed-off-by: Christophe JAILLET --- drivers/scsi/libiscsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di

Re: [Patch v2 2/2] libiscsi: Remove iscsi_destroy_session

2017-09-14 Thread The Lee-Man
On Thursday, September 14, 2017 at 12:57:58 AM UTC-7, Johannes Thumshirn wrote: > > On Wed, Sep 13, 2017 at 05:09:03PM -0700, Lee Duncan wrote: > > On 07/13/2017 09:11 AM, Khazhismel Kumykov wrote: > > > iscsi_session_teardown was the only user of this function. Function > > > currently is just

Re: [Patch v2 2/2] libiscsi: Remove iscsi_destroy_session

2017-09-14 Thread Johannes Thumshirn
On Wed, Sep 13, 2017 at 05:09:03PM -0700, Lee Duncan wrote: > On 07/13/2017 09:11 AM, Khazhismel Kumykov wrote: > > iscsi_session_teardown was the only user of this function. Function > > currently is just short for iscsi_remove_session + iscsi_free_session. > > > > Signed-off-by: Khazhismel Kumyk