All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] target/iscsi networkportal race fixes
@ 2014-01-25  0:18 Andy Grover
  2014-01-25  0:18 ` [PATCH 1/3] target/iscsi: Set np_thread_state to ACTIVE before adding to g_np_list Andy Grover
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Andy Grover @ 2014-01-25  0:18 UTC (permalink / raw)
  To: target-devel; +Cc: linux-scsi

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(-)


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-01-28 20:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-25  0:18 [PATCH 0/3] target/iscsi networkportal race fixes Andy Grover
2014-01-25  0:18 ` [PATCH 1/3] target/iscsi: Set np_thread_state to ACTIVE before adding to g_np_list Andy Grover
2014-01-25  0:18 ` [PATCH 2/3] target/iscsi: Convert np_lock from a spinlock to a mutex Andy Grover
2014-01-25  0:18 ` [PATCH 3/3] target/iscsi: hold np_lock mutex across adding new net portal to g_np_list Andy Grover
2014-01-28 19:15 ` [PATCH 0/3] target/iscsi networkportal race fixes Nicholas A. Bellinger
2014-01-28 20:04   ` Andy Grover

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.