LIS SOCK SENDMSG ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



         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/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux