see https://bugzilla.redhat.com/show_bug.cgi?id=1055064

Summary: if thread doesn't run before 2nd identical portal is created,
it misses the existing one and the kernel_bind returns an error.

The first one-line patch fixes the issue for a single thread creating
multiple network portals via configfs.

The second two close the race between multiple threads creating
network portals.

Testing: failing test script now works.

Regards -- Andy

Andy Grover (3):
  target/iscsi: Set np_thread_state to ACTIVE before adding to
    g_np_list
  target/iscsi: Convert np_lock from a spinlock to a mutex
  target/iscsi: hold np_lock mutex across adding new net portal to
    g_np_list

 drivers/target/iscsi/iscsi_target.c |   29 +++++++++++++++++------------
 1 files changed, 17 insertions(+), 12 deletions(-)

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to