Hi All,<br><br>Why do we need the socket state (for the nework layer representation of the sockets) to be <br> volatile? <br>It is implemented as volatile unsigned char skc_state in struct sock_common .<br><br>The tcp state change handler does not give me any clues also.
<br><br>Is this simply an overkill here or to supress optimization from the GCC? <br><br>Can we just use memory barriers here?[refer: volatile considered harmful on LKML]<br> <br>Thank you<br>~psr<br><br> -- <br>play the game