RFC target: export session info
Status from this message: Thanks, applied to the configfs tree.
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest15 patches 42 repliesApplied
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/15 | configfs: fix registered group removalfs/ | +10 | 1 reply | |
| 2/15 | target: fix isid copying and comparisiondrivers/ drivers/ | +18 | 8 replies | |
| 3/15 | target: fix __transport_register_session lockingdrivers/ | +3 | 2 replies | |
| 4/15 | target/iscsi: move session_index to common se_sessiondrivers/ drivers/ drivers/ +4 more | +27 | 4 replies | |
| 5/15 | target: remove sess_get_indexDocumentation/ drivers/ drivers/ +13 more | +1 | 2 replies | |
| 6/15 | target: make transport_init_session_tags staticdrivers/ include/ | +3 | 2 replies | |
| 7/15 | target: rename target_alloc_sessiondrivers/ drivers/ drivers/ +8 more | +14 | 2 replies | |
| 8/15 | target: add session removal functiondrivers/ drivers/ drivers/ +8 more | +17 | 2 replies | |
| 9/15 | target: add session dir in configfsdrivers/ drivers/ drivers/ +4 more | +105 | 2 replies | |
| 10/15 | target: add lock around session fields exported in configfsdrivers/ include/ | +12 | 0 replies | |
| 11/15 | target: export initiator port values for all sessionsdrivers/ | +48 | 13 replies | |
| 12/15 | target: add callout to test a sessiondrivers/ drivers/ drivers/ +2 more | +88 | 2 replies | |
| 13/15 | iscsi target: check nopin_response_timeout before starting timerdrivers/ | +4 | 1 reply | |
| 14/15 | iscsi target: add test_session calloutdrivers/ drivers/ drivers/ +2 more | +111 | 0 replies | |
| 15/15 | iscsi target: merge iscsit_start_nopin_timer and __iscsit_start_nopin_timerdrivers/ | +1 | 1 reply |
Reviews trailers per patch
7 of 15 patches have a Reviewed-by or Acked-by.
| Patch | Christoph Hellwig |
|---|---|
| 1/15 | |
| 2/15 | |
| 3/15 | R-b |
| 4/15 | |
| 5/15 | R-b |
| 6/15 | R-b |
| 7/15 | R-b |
| 8/15 | R-b |
| 9/15 | |
| 10/15 | |
| 11/15 | |
| 12/15 | |
| 13/15 | R-b |
| 14/15 | |
| 15/15 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [RFC PATCH 00/15] target: export session info
Currently, session info is in 3 places:
1. iscsi has the info file under initiator acls.
2. In the tpg dir iscsi and qla have the dynamic sessions.
3. Some lun stat files return some initiator info.
The problem with these is for:
1 and 3 - They only display 1 session's info per target port. In multipath and HA setups you will have multiple initiator ports connected to each target port, so for iscsi the isid will be different for each session.
2 - We only get the initiator name. For iscsi we want the isid. Also if we have a lot of sessions we are limited by the PAGE_SIZE file limit.
To handle all these issues these patches add session info under
/sys/kernel/config/target/iscsi/$target_name/tpgt_$N/sessions
This only a RFC right now. There is still a bug in the iscsi code where if configfs registration fails we have to cleanup the session.