summaryrefslogtreecommitdiff
path: root/include/scsi/fc_transport_fcoe.h
diff options
context:
space:
mode:
authorRobert Love <robert.w.love@intel.com>2009-03-17 18:41:46 (GMT)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2009-04-03 14:22:59 (GMT)
commit8976f424d43c80ea32b6e847226e1a8ccdb6e748 (patch)
tree361d16be95cac84197e52411ed63ccfebfb88aff /include/scsi/fc_transport_fcoe.h
parent582b45bc577f78b5bfff3db874594ce2d962b846 (diff)
downloadlinux-8976f424d43c80ea32b6e847226e1a8ccdb6e748.tar.xz
[SCSI] fcoe: create/destroy fcoe Rx threads on CPU hotplug events
This patch adds support for dynamically created Rx threads upon CPU hotplug events. There were existing synchronization problems that this patch attempts to resolve. The main problem had to do with fcoe_rcv() running in a different context than the hotplug notifications. This opened the possiblity that fcoe_rcv() would target a Rx thread for a skb. However, that thread could become NULL if the CPU was made offline. This patch uses the Rx queue's (a skb_queue) lock to protect the thread it's associated with and we use the 'thread' member of the fcoe_percpu_s to determine if the thread is ready to accept new skbs. The patch also attempts to do a better job of cleaning up, both if hotplug registration fails as well as when the module is removed. Contribution provided by Joe Eykholt <jeykholt@cisco.com> to fix incorrect use of __cpuinitdata. Signed-off-by: Yi Zou <yi.zou@intel.com> Signed-off-by: Robert Love <robert.w.love@intel.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'include/scsi/fc_transport_fcoe.h')
0 files changed, 0 insertions, 0 deletions