lkml.org 
[lkml]   [2001]   [Jun]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: tcp_recvmsg() in 2.4.4

    Eric Barton writes:
    > When it get to if(sk->state == TCP_CLOSE), surely sk->done has already been
    > tested (and the socket is locked), so -ENOTCONN could be returned
    > immediately.

    We sleep and drop the lock during these loops, so we need to retest
    this each time we wake back up.

    > Actually I'd really appreciate it if someone could explain the order of
    > tests for sk->done, sk->err, sk->shutdown and sk->state...

    Most of the error test ordering is specified by POSIX somewhere.

    Alan would know better.

    Later,
    David S. Miller
    davem@redhat.com
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:17    [W:0.021 / U:29.944 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site