[LU-13049] LNet: Handle shutdown properly Created: 04/Dec/19 Updated: 20/Oct/22 Resolved: 28/Jan/20 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.14.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Amir Shehata (Inactive) | Assignee: | Amir Shehata (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||
| Severity: | 3 | ||||
| Rank (Obsolete): | 9223372036854775807 | ||||
| Description |
|
There are two code paths which can lookup a peer while the system is shutting down:
In both of these cases the_lnet.ln_state might be shutting down. Currently lnet_get_peer_ni_locked() asserts on ln_stat == LNET_STATE_RUNNING. This should be handled gracefully. If the state isn't running, then it should return NULL. Callers of the function handle NULL return code. |
| Comments |
| Comment by Gerrit Updater [ 04/Dec/19 ] |
|
Amir Shehata (ashehata@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/36925 |
| Comment by Gerrit Updater [ 28/Jan/20 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/36925/ |
| Comment by Peter Jones [ 28/Jan/20 ] |
|
Landed for 2.14 |