Commit 6608808
block: BFQ: Refactor bfq_exit_icq() to silence sparse warning
Currently building for C=1 generates the following warning:
block/bfq-iosched.c:5498:9: warning: context imbalance in 'bfq_exit_icq' - different lock contexts for basic block
Refactor bfq_exit_icq() into a core part which loops for the actuators,
and only lock calling this routine when necessary.
Signed-off-by: John Garry <john.g.garry@oracle.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20240614090345.655716-4-john.g.garry@oracle.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent c3042a5 commit 6608808
1 file changed
Lines changed: 20 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5463 | 5463 | | |
5464 | 5464 | | |
5465 | 5465 | | |
| 5466 | + | |
| 5467 | + | |
| 5468 | + | |
| 5469 | + | |
| 5470 | + | |
| 5471 | + | |
| 5472 | + | |
| 5473 | + | |
| 5474 | + | |
| 5475 | + | |
| 5476 | + | |
| 5477 | + | |
| 5478 | + | |
| 5479 | + | |
5466 | 5480 | | |
5467 | 5481 | | |
5468 | 5482 | | |
5469 | 5483 | | |
5470 | 5484 | | |
5471 | | - | |
| 5485 | + | |
5472 | 5486 | | |
5473 | 5487 | | |
5474 | 5488 | | |
5475 | 5489 | | |
5476 | 5490 | | |
5477 | | - | |
5478 | | - | |
5479 | | - | |
5480 | | - | |
5481 | | - | |
| 5491 | + | |
5482 | 5492 | | |
5483 | 5493 | | |
5484 | 5494 | | |
5485 | 5495 | | |
5486 | 5496 | | |
5487 | | - | |
5488 | | - | |
5489 | | - | |
5490 | | - | |
5491 | | - | |
5492 | | - | |
5493 | | - | |
5494 | | - | |
5495 | | - | |
5496 | | - | |
5497 | | - | |
5498 | | - | |
| 5497 | + | |
5499 | 5498 | | |
| 5499 | + | |
| 5500 | + | |
| 5501 | + | |
5500 | 5502 | | |
5501 | 5503 | | |
5502 | 5504 | | |
| |||
0 commit comments