]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: bnx2fc: Prevent recursive cpuhotplug locking
authorThomas Gleixner <tglx@linutronix.de>
Mon, 24 Jul 2017 10:52:57 +0000 (12:52 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 27 Jul 2017 01:51:24 +0000 (21:51 -0400)
commit50b86fc27a2f5fc7ef9bafb79241b4255bd728ae
tree81006e8c015ad3cad981e93b916876186a404a3b
parent7765308879be1e301a2cb43fdff95fa8170af631
scsi: bnx2fc: Prevent recursive cpuhotplug locking

The BNX2FC module init/exit code installs/removes the hotplug callbacks with
the cpu hotplug lock held. This worked with the old CPU locking
implementation which allowed recursive locking, but with the new percpu
rwsem based mechanism this is not longer allowed.

Use the _cpuslocked() variants to fix this.

Reported-by: kernel test robot <fengguang.wu@intel.com>
Acked-by: Chad Dupuis <chad.dupuis@cavium.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/bnx2fc/bnx2fc_fcoe.c