Commit cc56430
ceph: clear s_cap_reconnect when ceph_pagelist_encode_32() fails
This MDS reconnect error path leaves s_cap_reconnect set.
send_mds_reconnect() sets the bit at the beginning of the reconnect,
but the first failing operation after that, ceph_pagelist_encode_32(),
can jump to `fail:` without clearing it.
__ceph_remove_cap() consults that flag to decide whether cap releases
should be queued. A reconnect-preparation failure therefore leaves the
session in reconnect mode from the cap-release path's point of view
and can strand release work until some later state transition repairs
it.
Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
Reviewed-by: Viacheslav Dubeyko <Slava.Dubeyko@ibm.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>1 parent 803447f commit cc56430
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4956 | 4956 | | |
4957 | 4957 | | |
4958 | 4958 | | |
4959 | | - | |
| 4959 | + | |
4960 | 4960 | | |
4961 | 4961 | | |
4962 | 4962 | | |
| |||
5046 | 5046 | | |
5047 | 5047 | | |
5048 | 5048 | | |
| 5049 | + | |
| 5050 | + | |
| 5051 | + | |
| 5052 | + | |
5049 | 5053 | | |
5050 | 5054 | | |
5051 | 5055 | | |
| |||
0 commit comments