Re: [PATCH] lockd
From: Trond Myklebust
Date: Mon Oct 04 2004 - 12:55:32 EST
På må , 04/10/2004 klokka 18:24, skreiv Steve Dickson:
> Hey Neil,
Hey! This is the client side NLM code... 8-)
> clear_thread_flag(TIF_SIGPENDING);
> - interruptible_sleep_on_timeout(&lockd_exit, HZ);
> - if (nlmsvc_pid) {
> + set_current_state(TASK_UNINTERRUPTIBLE);
Nope. Those clearly are not the same.
Note that you probably also want to move the call to
set_current_state(TASK_INTERRUPTIBLE) inside the loop. In that case you
can also remove the call to set_current_state(TASK_RUNNING) ('cos
schedule_timeout() will do that for you).
Also, why aren't you using the more standard DECLARE_WAITQUEUE(__wait)?
Cheers,
Trond
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/