Messages in this thread Patch in this message | | | Subject | Re: [patch] Real-Time Preemption, -RT-2.6.9-rc4-mm1-U6 | From | Thomas Gleixner <> | Date | Tue, 19 Oct 2004 17:48:36 +0200 |
| |
On Tue, 2004-10-19 at 16:46, Ingo Molnar wrote: > * Ingo Molnar <mingo@elte.hu> wrote: > i've re-released the patch because shortly after releasing it i found a > false-positive in the deadlock-detector that was triggering in oowriter.
Hit and converted another one. There are more, but they need more modifications as they don't have a condition to wait for and therefor must be converted to use the completion API, which must be extended to provide completion_timemout() first.
tglx
diff --exclude='*~' -urN 2.6.9-rc4-mm1-RT-U6/net/sunrpc/clnt.c 2.6.9-rc4-mm1-VP-U4-LRT1/net/sunrpc/clnt.c --- 2.6.9-rc4-mm1-RT-U6/net/sunrpc/clnt.c 2004-10-12 09:32:23.000000000 +0200 +++ 2.6.9-rc4-mm1-VP-U4-LRT1/net/sunrpc/clnt.c 2004-10-19 16:16:29.000000000 +0200 @@ -231,7 +231,8 @@ clnt->cl_oneshot = 0; clnt->cl_dead = 0; rpc_killall_tasks(clnt); - sleep_on_timeout(&destroy_wait, 1*HZ); + wait_event_timeout(destroy_wait, + atomic_read(&clnt->cl_users) > 0, 1*HZ); } if (atomic_read(&clnt->cl_users) < 0) { | |