Please ignore this. I am going to post an updated version
that sorts out the "poll()" logic in iscsid_req.c, as Uli requested
with the earlier patch.

On Tuesday, November 22, 2016 at 2:44:56 PM UTC-8, The Lee-Man wrote:
>
> From: Lee Duncan <lduncan@*.com <ldun...@suse.com>> 
>
> This set of two patches addresses the issues 
> I mentioned on the mailing list recently relating 
> to how systemd can interfere with shutting down 
> the iscsid daemon. The iscsiadm command "-k" 
> can hang if the daemon is not present, when 
> running under systemd, when socket activated. 
>
> The first patch, from Hannes, modifies the IPC 
> communications so that user-level commands, like 
> iscsiadm and iscsistart, do not hang when waiting 
> for a response from the iscsid daemon by using 
> the poll() system call. This version also has a 
> couple of small bug fixes on top of the version 
> that Hannes posted recently. 
>
> The second patch modifies iscsid to treat a 
> SIGTERM just like it had received the "immediate 
> stop" command from iscsiadm (via the "-k" 
> option), simplifying the shutdown of iscsid so 
> that it no longer requires IPC communications. 
>
> Hannes Reinecke (1): 
>   Use timeout when waiting for responses from iscsid 
>
> Lee Duncan (1): 
>   iscsid: treat SIGTERM like "iscsiadm -k 0". 
>
>  usr/config.h               |  1 + 
>  usr/discovery.c            | 16 +++++++------- 
>  usr/host.c                 |  2 +- 
>  usr/iscsi_sysfs.c          |  1 + 
>  usr/iscsiadm.c             | 12 ++++++----- 
>  usr/iscsid.c               | 29 +++++++++++++++----------- 
>  usr/iscsid_req.c           | 52 
> +++++++++++++++++++++++++++++++++++++--------- 
>  usr/iscsid_req.h           | 15 +++++++------ 
>  usr/iscsistart.c           |  4 ++-- 
>  usr/session_info.c         | 14 +++++++------ 
>  usr/session_info.h         |  5 +++-- 
>  12 files changed, 99 insertions(+), 53 deletions(-) 
>
> -- 
> 1.8.5.6 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to open-iscsi+unsubscr...@googlegroups.com.
To post to this group, send email to open-iscsi@googlegroups.com.
Visit this group at https://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to