Skip to content

fcoe: fixup device_del() inversion

Hannes Reinecke linux-scsi 3 versions – Applied

Status from this message: Applied to 4.15/scsi-queue. Thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyApplied
  2. v1 posting 2/21 patch 1 replySuperseded
  3. v1 posting 1/23 patches 7 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3fcoe: move fcoe_interface_remove() out of fcoe_interface_cleanup()drivers/scsi/fcoe/fcoe.c+7 -50 replies
2/3fcoe: separate out fcoe_vport_remove()drivers/scsi/fcoe/fcoe.c+33 -220 replies
3/3fcoe: open-code fcoe_destroy_work() for NETDEV_UNREGISTERdrivers/scsi/fcoe/fcoe.c+13 -50 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchLee DuncanJohannes Thumshirn
1/3R-b A-b
2/3R-b A-b
3/3R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCHv2 0/3] fcoe: fixup device_del() inversion

Hi all,

when shutting down an FCoE target system one is greeted with a flood of kernel warnings about

sysfs group ffffffff81eff0e0 not found for kobject 'XXX'

Reason here is that the fcoe driver tries to remove devices from a workqueue, but the NETDEV_UNREGISTER notification expects any calls to be synchronous as it will tear down the device once the notifications return.
With this patch device removals are done synchronously, so the correct ordering is respected and the warnings are gone.

As usual, comments and reviews are welcome.

Hannes Reinecke (3):
fcoe: move fcoe_interface_remove() out of fcoe_interface_cleanup()
fcoe: separate out fcoe_vport_remove()
fcoe: open-code fcoe_destroy_work() for NETDEV_UNREGISTER

 drivers/scsi/fcoe/fcoe.c | 81 ++++++++++++++++++++++++++++++------------------
 1 file changed, 51 insertions(+), 30 deletions(-)
Signature · 1 line
1.8.5.6