]> git.baikalelectronics.ru Git - kernel.git/commit
iscsi: use IP_FREEBIND socket option
authorDax Kelson <dkelson@gurulabs.com>
Sat, 4 Feb 2012 06:40:25 +0000 (23:40 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 7 Feb 2012 06:48:53 +0000 (06:48 +0000)
commite5978b8174a22ff49259e589a170179dd3d5f87c
treedab36bf875ce037be9fc59b7fab101dce192d188
parent8ca7c84dc47b373f7a4550175cde66ed58bd4005
iscsi: use IP_FREEBIND socket option

Use IP_FREEBIND socket option so that iscsi portal configuration with
explicit IP addresses can happen during boot, before network interfaces
have been assigned IPs.

This is especially important on systemd based Linux boxes where system
boot happens asynchronously and non-trivial configuration must be done
to get targetcli.service to start synchronously after the network is
configured.

Reference:
http://lists.fedoraproject.org/pipermail/devel/2011-October/158025.html

Signed-off-by: Dax Kelson <dkelson@gurulabs.com>
Cc: "Nicholas A. Bellinger" <nab@linux-iscsi.org>
Cc: "Andy Grover" <agrover@redhat.com>
Cc: "Lennart Poettering" <lennart@poettering.net>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target_login.c