Commit e8185b8
Ming Lei
block: add two helpers for registering/un-registering sched debugfs
JIRA: https://issues.redhat.com/browse/RHEL-106845
commit ed3896a
Author: Ming Lei <ming.lei@redhat.com>
Date: Mon May 5 22:17:43 2025 +0800
block: add two helpers for registering/un-registering sched debugfs
Add blk_mq_sched_reg_debugfs()/blk_mq_sched_unreg_debugfs() to clean up
sched init/exit code a bit.
Register & unregister debugfs for sched & sched_hctx order is changed a
bit, but it is safe because sched & sched_hctx is guaranteed to be ready
when exporting via debugfs.
Reviewed-by: Yu Kuai <yukuai3@huawei.com>
Reviewed-by: Nilay Shroff <nilay@linux.ibm.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20250505141805.2751237-6-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Ming Lei <ming.lei@redhat.com>1 parent 3e9a5f6 commit e8185b8
1 file changed
+30
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
434 | 434 | | |
435 | 435 | | |
436 | 436 | | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
437 | 461 | | |
438 | 462 | | |
439 | 463 | | |
| |||
467 | 491 | | |
468 | 492 | | |
469 | 493 | | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | 494 | | |
475 | 495 | | |
476 | 496 | | |
| |||
482 | 502 | | |
483 | 503 | | |
484 | 504 | | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | 505 | | |
489 | 506 | | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
490 | 510 | | |
491 | 511 | | |
492 | 512 | | |
| |||
524 | 544 | | |
525 | 545 | | |
526 | 546 | | |
527 | | - | |
528 | | - | |
529 | | - | |
530 | | - | |
| 547 | + | |
| 548 | + | |
531 | 549 | | |
| 550 | + | |
532 | 551 | | |
533 | 552 | | |
534 | 553 | | |
535 | 554 | | |
536 | 555 | | |
537 | 556 | | |
538 | 557 | | |
539 | | - | |
540 | | - | |
541 | | - | |
542 | | - | |
543 | 558 | | |
544 | 559 | | |
545 | 560 | | |
| |||
0 commit comments