Re: [PATCH v3] redirect: protect again tgtd process hang as of cluster software hang

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 22 Mar 2011 08:44:10 +0200
Or Gerlitz <ogerlitz@xxxxxxxxxxxx> wrote:

> If the child process spawned to run the redirect callback script hangs, e.g
> as of load/bug in the application which this script is dealing with, tgt
> can hang forever. Protect against that by selecting the fd from which tgt
> is expected to read, for up to 100ms, if the timeout expires, tgt terminates
> the child process and fail the initiator login attempt. While not being the
> ultimate solution, of using tgt_event_add et al. and making the redirect
> code fully asynchronous, this patch adds protection and makes things much
> better in that respect.
> 
> Signed-off-by: Alexander Nezhinsky <alexandern@xxxxxxxxxxxx>
> Signed-off-by: Or Gerlitz <ogerlitz@xxxxxxxxxxxx>
> 
> -----
> changes from V1:
> 	added a comment and few formatting changes
> 
> changes from V2:
> 	fixed some checkpatch warnings
> 
>  usr/tgtd.c |   29 ++++++++++++++++++++++++-----
>  1 files changed, 24 insertions(+), 5 deletions(-)

Applied, thanks!

--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux