OSDN Git Service

scsi: target: tcmu: wait for nl reply only if there are listeners or during an add
authorCathy Avery <cavery@redhat.com>
Thu, 28 Feb 2019 19:28:24 +0000 (14:28 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 7 Mar 2019 00:26:13 +0000 (19:26 -0500)
commit2ff717cdc693d532e4560f43858443aea7d88197
treea7c8aa70cf06cebe2a2089c97dcb8a28c490c074
parent3722e6a52174d7c3a00e6f5efd006ca093f346c1
scsi: target: tcmu: wait for nl reply only if there are listeners or during an add

genlmsg_multicast_allns now returns the correct statuses when a message is
sent to a listener. However in the case of adding a device we want to wait
for the listener otherwise we may miss the the device during startup.

Signed-off-by: Cathy Avery <cavery@redhat.com>
Acked-by: Mike Christie <mchristi@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/target_core_user.c