]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: bnx2fc: Simplify CPU hotplug code
authorThomas Gleixner <tglx@linutronix.de>
Mon, 24 Jul 2017 10:52:59 +0000 (12:52 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 27 Jul 2017 01:51:25 +0000 (21:51 -0400)
commit8b5c81511cc4fa32eea94cf3dc0b4ea2291c54af
treeae0ec315d5959295822e98f8fe8238c91f144c34
parentbf60b4c7712a23d1c3c38514deb466fa70b9323a
scsi: bnx2fc: Simplify CPU hotplug code

The CPU hotplug related code of this driver can be simplified by:

1) Consolidating the callbacks into a single state. The CPU thread can be
   torn down on the CPU which goes offline. There is no point in delaying
   that to the CPU dead state

2) Let the core code invoke the online/offline callbacks and remove the
   extra for_each_online_cpu() loops.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/bnx2fc/bnx2fc_fcoe.c
include/linux/cpuhotplug.h