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 <hch@lst.de>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Nilay Shroff <nilay@linux.ibm.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/20250110054726.1499538-12-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent b38c8be commit b03732a
1 file changed
Lines changed: 16 additions & 2 deletions
| 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