scsi: iscsi: respond to netlink with unicast when appropriate
authorChris Leech <cleech@redhat.com>
Mon, 9 Apr 2018 22:15:28 +0000 (15:15 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 19 Apr 2018 02:58:49 +0000 (22:58 -0400)
commitaf17092810a887178195276255b7b31f8fbe7dbe
tree0d84850ed9dde3c4d49ca4f4ab2d22e5eec59051
parent60cc43fc888428bb2f18f08997432d426a243338
scsi: iscsi: respond to netlink with unicast when appropriate

Instead of always multicasting responses, send a unicast netlink message
directed at the correct pid.  This will be needed if we ever want to
support multiple userspace processes interacting with the kernel over
iSCSI netlink simultaneously.  Limitations can currently be seen if you
attempt to run multiple iscsistart commands in parallel.

We've fixed up the userspace issues in iscsistart that prevented
multiple instances from running, so now attempts to speed up booting by
bringing up multiple iscsi sessions at once in the initramfs are just
running into misrouted responses that this fixes.

Signed-off-by: Chris Leech <cleech@redhat.com>
Reviewed-by: Lee Duncan <lduncan@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_transport_iscsi.c