Erez Zilber wrote:
> If 'iscsiadm -m node --logoutall=all' fails when stopping
> the open-iscsi service, we shouldn't kill iscsid.
> 
> This solves the following race:
> 1. A logout from a node is initiated by the user.
> 2. Before the logout completes, the user runs /etc/init.d/iscsi stop.
>    The 'stop' method logs out from all nodes. When it tries to logout
>    from the node that is already logging out (step #1), it fails
>    because it is already logging out. Then, the 'stop' method kills
>    iscsid.
> 3. The logout command form step #1 returns and notifies the (dead) daemon.
> 
> Now, running 'iscsiadm -m session' shows a session (which, actually, doesn't
> exist anymore) and the iscsi service is down.
> 
> Signed-off-by: Erez Zilber <erezzi.l...@gmail.com>
> 

Thanks Erez. Merged in a62d1b60856dc3118ab1d07990d43695b336fd69. It 
should be on kernel.org in a little bit.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to 
open-iscsi+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~----------~----~----~----~------~----~------~--~---

Reply via email to