Commit 39c0023
committed
[L0] fix a deadlock on a recursive event rwlock
L0, when creating a list of events to wait on, in some cases
was first grabbing a lock on a potentially completed event,
and then tried to get a command list, which sometimes needs to
cleanup all completed events. This caused a deadlock.
This patch moves getting a command list to before the event lock.
But because the lock is required to decide whether this command
list actually needed, we might be wasting time here.1 parent 4c22f5c commit 39c0023
1 file changed
+9
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1307 | 1307 | | |
1308 | 1308 | | |
1309 | 1309 | | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
1310 | 1319 | | |
1311 | 1320 | | |
1312 | 1321 | | |
| |||
1316 | 1325 | | |
1317 | 1326 | | |
1318 | 1327 | | |
1319 | | - | |
1320 | | - | |
1321 | | - | |
1322 | | - | |
1323 | 1328 | | |
1324 | 1329 | | |
1325 | 1330 | | |
| |||
0 commit comments