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)
commit2b1be55819dc7ae35576b3ba621c7fed0c323e04
tree3966684d1738f49d5bde15f1fe1d9c401476a08a
parenta7dff3ad4787381a3aa831d558fb720b8f354435
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