synchronization between bottom half and user context

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

 



Can someone tell me when lock should be used to synchronize bh and user
context?

For examle: in tcp_accept(), lock_sock() is called to avoid any change
made by net_bh during its operation. But if tcp_accept() is called, it's
impossilbe that net_bh is also executing. (i think this is true for UP,
what about SMP?), then why need lock_sock()?

ronghua

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