]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: scsi_transport_fc: refactor event posting routines
authorJames Smart <jsmart2021@gmail.com>
Fri, 5 Apr 2019 23:04:21 +0000 (16:04 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 9 Apr 2019 01:29:16 +0000 (21:29 -0400)
commit5428ad687320195561e5447b61d7c0ede5ff0058
tree3966684d1738f49d5bde15f1fe1d9c401476a08a
parentc68622ee224c92fc891eaf80791277ec794249d1
scsi: scsi_transport_fc: refactor event posting routines

There are two routines generating transport events that do the same thing
with only a couple of values set differently.

Refactor so there's a single routine doing the netlink operations to send
the event. All the differences are passed as arguments. Export the symbol
so the generic routine can be called by llds.

Modify the existing two event routines to use the helper.

Signed-off-by: James Smart <jsmart2021@gmail.com>
Reviewed-by: Ewan D. Milne <emilne@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_transport_fc.c
include/scsi/scsi_transport_fc.h