]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
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)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 1 Oct 2018 12:55:15 +0000 (14:55 +0200)
commit4d37e807f6c49f72ad24b979b7c53695270ea7f4
tree62fcd80409166cfb19b2539f05bd781ba1fcd1e9
parent4445eedacf05239076dea44e5955b3ffe124e6c2
scsi: iscsi: respond to netlink with unicast when appropriate

BugLink: http://bugs.launchpad.net/bugs/1794889
[ Upstream commit af17092810a887178195276255b7b31f8fbe7dbe ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/scsi/scsi_transport_iscsi.c