From: Hong zhi guo <redacted>
Date: Tue, 5 Jun 2012 20:05:34 +0800
On Tue, Jun 5, 2012 at 7:05 PM, Eric Dumazet [off-list ref] wrote:
quoted
Why not using the more standard :
prepare_to_wait(sk_sleep(sk), &wait, TASK_INTERRUPTIBLE);
and
finish_wait(sk_sleep(sk), &wait);
Thanks for your comments. The difference is that prepare_to_wait
inside loop introduces extra "list_empty" judgement than original
patch. But personally I prefer the newer version too:
Signed-off-by: Hong Zhiguo <redacted>
Please don't submit patches like this:
1) When submitting new versions of a patch, make a fresh
new mailing list posting with just the patch and it's
commit message.
Do not post new versions by replying to other conversations.
2) Your email client has severely corrupted the patch, breaking
up long lines etc. Please read Documentation/email-clients.txt
to learn how to fix this.