[PATCHv3 2/2] iscsid: treat SIGTERM like "iscsiadm -k 0".

2016-11-22 Thread leeman.duncan
From: Lee Duncan The same code that is executed by iscsid when iscsiadm sends the "immediate stop" command should be executed when iscsid receives a SIGTERM. Signed-off-by: Lee Duncan --- usr/iscsid.c | 27 --- 1 file changed, 16

[PATCHv3 1/2] Use timeout when waiting for responses from iscsid

2016-11-22 Thread leeman.duncan
From: Hannes Reinecke The server might already been terminated when iscsiadm tries to send a request to it, hence we might be waiting forever for a reply. With this patchset we're waiting at most one minute before giving up, avoiding a hang in iscsiadm. Changes since v2: * rework

[PATCHv3 0/2] Handle iscsid shutdown more cleanly

2016-11-22 Thread leeman.duncan
From: Lee Duncan 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

Re: [PATCHv2 0/2] Handle iscsid shutdown more cleanly

2016-11-22 Thread The Lee-Man
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 > > > This set of two

[PATCHv2 2/2] iscsid: treat SIGTERM like "iscsiadm -k 0".

2016-11-22 Thread leeman.duncan
From: Lee Duncan The same code that is executed by iscsid when iscsiadm sends the "immediate stop" command should be executed when iscsid receives a SIGTERM. Signed-off-by: Lee Duncan --- usr/iscsid.c | 27 --- 1 file

[PATCHv2 1/2] Use timeout when waiting for responses from iscsid

2016-11-22 Thread leeman.duncan
From: Hannes Reinecke The server might already been terminated when iscsiadm tries to send a request to it, hence we might be waiting forever for a reply. With this patchset we're waiting at most one minute before giving up, avoiding a hang in iscsiadm. Changes since v1: * Break

[PATCHv2 0/2] Handle iscsid shutdown more cleanly

2016-11-22 Thread leeman.duncan
From: Lee Duncan 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

Re: RFC: iscsid shutdown hangs with system when service manually killed

2016-11-22 Thread Hannes Reinecke
On 11/21/2016 06:41 PM, Lee Duncan wrote: > >> On Nov 21, 2016, at 6:14 AM, Hannes Reinecke > > wrote: >> >> On 11/19/2016 08:46 PM, The Lee-Man wrote: >>> In this wonderful new world of systemd, I have an issue with stopping >>> the iscsid service when the

Antw: Re: RFC: iscsid shutdown hangs with system when service manually killed

2016-11-22 Thread Ulrich Windl
>>> "Ulrich Windl" schrieb am 22.11.2016 um 08:43 in Nachricht <5834052f02a100023...@gwsmtp1.uni-regensburg.de>: [...] > I also think that a look with three "continue" and one "break" is a bit s/look/loop/ # user not fully awake ;-) -- You received