target/iscsi networkportal race fixes
Status from this message: Applied, squashed into a single bugfix patch, and adding a CC'ed to
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | target/iscsi: Set np_thread_state to ACTIVE before adding to g_np_listdrivers/ | +1 | 0 replies | |
| 2/3 | target/iscsi: Convert np_lock from a spinlock to a mutexdrivers/ | +11 | 0 replies | |
| 3/3 | target/iscsi: hold np_lock mutex across adding new net portal to g_np_listdrivers/ | +9 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] target/iscsi networkportal race fixes
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(-)