Fix a race condition in the target driver
Status from this message: Applied to 5.7/scsi-queue, thanks!
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v1 Latest posting 2/23 patches 1 replyApplied
- v1 posting 1/23 patches 3 repliesSuperseded
Patches in v1 posting 2/2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | target: remove boilerplate codedrivers/ drivers/ | +2 | 0 replies | |
| 2/3 | target: fix target hang when multiple threads try to destroy the same iscsi session.drivers/ drivers/ drivers/ +1 more | +30 | 0 replies | |
| 3/3 | iscsi target: calling iscsit_stop_session() inside iscsit_close_session() has no effectdrivers/ | +1 | 0 replies |
Reviews trailers per patch
None of the 3 patches has a Reviewed-by or Acked-by.
| Patch | Matt Coleman |
|---|---|
| 1/3 | |
| 2/3 | T-b |
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH RESEND 0/3] Fix a race condition in the target driver
Multiple threads may try to destroy the same iscsi session structure by calling iscsit_close_session() and then end up hanging.
This patchset modifies the driver so the session structure is destroyed by iscsit_close_connection() when the last connection gets closed, thus preventing the race condition.
Maurizio Lombardi (3):
target: remove boilerplate code
target: fix target hang when multiple threads try to destroy the same
iscsi session.
iscsi target: calling iscsit_stop_session() inside
iscsit_close_session() has no effect
drivers/target/iscsi/iscsi_target.c | 82 ++++++-------------- drivers/target/iscsi/iscsi_target.h | 1 - drivers/target/iscsi/iscsi_target_configfs.c | 5 +- drivers/target/iscsi/iscsi_target_login.c | 5 +- include/target/iscsi/iscsi_target_core.h | 2 +- 5 files changed, 32 insertions(+), 63 deletions(-)
Signature · 1 line
2.21.0