Commit 7607cff
committed
crimson/osd/pg: set log_entry_update_waiting_on prior to sending requests
Before this patch, we would first send the MOSDPGUpdateLogMissing to
all peers and only then insert this rep_tid to log_entry_update_waiting_on.
This could have resulted in race where we receive the reply prior to
actually inserting the rep_tid.
The reply would have been discarded with "reply on unknown tid" (which
is now aborting).
The unhandled reply would have not let submit_error to return and would
keep holding the lock on this obc.
Fixes: https://tracker.ceph.com/issues/71204
Signed-off-by: Matan Breizman <[email protected]>
(cherry picked from commit a2121eb)1 parent 4e89b99 commit 7607cff
1 file changed
+23
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1093 | 1093 | | |
1094 | 1094 | | |
1095 | 1095 | | |
1096 | | - | |
1097 | 1096 | | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
1098 | 1116 | | |
1099 | 1117 | | |
1100 | 1118 | | |
| |||
1110 | 1128 | | |
1111 | 1129 | | |
1112 | 1130 | | |
1113 | | - | |
1114 | 1131 | | |
1115 | 1132 | | |
1116 | 1133 | | |
| |||
1120 | 1137 | | |
1121 | 1138 | | |
1122 | 1139 | | |
1123 | | - | |
1124 | | - | |
1125 | | - | |
1126 | | - | |
1127 | | - | |
| 1140 | + | |
1128 | 1141 | | |
1129 | 1142 | | |
1130 | 1143 | | |
| |||
1471 | 1484 | | |
1472 | 1485 | | |
1473 | 1486 | | |
1474 | | - | |
1475 | | - | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
1476 | 1490 | | |
1477 | 1491 | | |
1478 | 1492 | | |
| |||
0 commit comments