Re: [PATCH 2.6.35.7] net: Fix the condition passed tosk_wait_event()

From: Eric Dumazet
Date: Sat Oct 02 2010 - 04:34:15 EST


Le samedi 02 octobre 2010 Ã 10:27 +0200, Eric Dumazet a Ãcrit :

> Just wondering why you remove the test on sk->err ?
>
> We want to break the loop If sk->sk_err is set, or state is ESTABLISHED
> or CLOSE_WAIT.

Hmm, reading the code again, I can see sk_err is tested in the loop, so
your code is better (sk_stream_wait_connect() returns an error after
your patch, instead of returning 0)

Could you please split your patch in two patches ?

The sk_stream_wait_connect() problems comes from commit
c1cbe4b7ad0bc4b1d9 ([NET]: Avoid atomic xchg() for non-error case)




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