Re: [PATCH] lockd

From: Steve Dickson
Date: Mon Oct 04 2004 - 14:43:45 EST




Trond Myklebust wrote:

På må , 04/10/2004 klokka 18:24, skreiv Steve Dickson:



Hey Neil,



Hey! This is the client side NLM code... 8-)


Sorry buddy.... I'm having one of those days!!!! :-\

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).



Ok...

Also, why aren't you using the more standard DECLARE_WAITQUEUE(__wait)?


I guess I didn't realize that would be a better way to do it... I'll look into to...

thanks,

SteveD.

-
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/