]> 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)
commit77768f56bb7325d125caf77b6e3b5a96ae830d3f
tree3966684d1738f49d5bde15f1fe1d9c401476a08a
parent38315038a87f85630edd30e2782a2fde645351c3
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