Commit b03732a
loop: fix queue freeze vs limits lock order
Match the locking order used by the core block code by only freezing
the queue after taking the limits lock using the
queue_limits_commit_update_frozen helper and document the callers that
do not freeze the queue at all.
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Ming Lei <[email protected]>
Reviewed-by: Damien Le Moal <[email protected]>
Reviewed-by: Martin K. Petersen <[email protected]>
Reviewed-by: Nilay Shroff <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>1 parent b38c8be commit b03732a
1 file changed
+16
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
314 | 321 | | |
315 | 322 | | |
316 | 323 | | |
| |||
1091 | 1098 | | |
1092 | 1099 | | |
1093 | 1100 | | |
| 1101 | + | |
1094 | 1102 | | |
1095 | 1103 | | |
1096 | 1104 | | |
| |||
1151 | 1159 | | |
1152 | 1160 | | |
1153 | 1161 | | |
1154 | | - | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
1155 | 1168 | | |
1156 | 1169 | | |
1157 | 1170 | | |
| |||
1471 | 1484 | | |
1472 | 1485 | | |
1473 | 1486 | | |
1474 | | - | |
1475 | 1487 | | |
1476 | 1488 | | |
| 1489 | + | |
| 1490 | + | |
1477 | 1491 | | |
1478 | 1492 | | |
1479 | 1493 | | |
| |||
0 commit comments