Re: [PATCH] protect again tgtd process hang as of hanging redirect script

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

 



On Thu, 17 Feb 2011 14:47:17 +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.

The description looks fine but it would be better to put the fd to
epoll (that is, using tgt_event_add)?


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