lis_spin_lock(&SCTP_IP_Send_Lock); old_fs = get_fs(); set_fs(get_ds()); /*n = sock->sk->prot->sendmsg(sock->sk, &msg, size);*/ n = lis_sock_sendmsg(sock, &msg, size); set_fs(old_fs); lis_spin_unlock(&SCTP_IP_Send_Lock); Is the following piece of code safe on an SMP machines ? -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/