[stgt] [PATCH] protect again tgtd process hang as of hanging redirect script
fujita.tomonori at lab.ntt.co.jp
Fri Feb 18 01:31:15 CET 2011
On Thu, 17 Feb 2011 14:47:17 +0200
Or Gerlitz <ogerlitz at mellanox.com> 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)?
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
More information about the stgt