hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/block/blk-mq-sched.c
....@@ -45,8 +45,7 @@
4545 }
4646
4747 /*
48
- * Mark a hardware queue as needing a restart. For shared queues, maintain
49
- * a count of how many hardware queues are marked for restart.
48
+ * Mark a hardware queue as needing a restart.
5049 */
5150 void blk_mq_sched_mark_restart_hctx(struct blk_mq_hw_ctx *hctx)
5251 {
....@@ -109,7 +108,7 @@
109108 /*
110109 * Only SCSI implements .get_budget and .put_budget, and SCSI restarts
111110 * its queue by itself in its completion handler, so we don't need to
112
- * restart queue if .get_budget() returns BLK_STS_NO_RESOURCE.
111
+ * restart queue if .get_budget() fails to get the budget.
113112 *
114113 * Returns -EAGAIN if hctx->dispatch was found non-empty and run_work has to
115114 * be run again. This is necessary to avoid starving flushes.
....@@ -223,7 +222,7 @@
223222 /*
224223 * Only SCSI implements .get_budget and .put_budget, and SCSI restarts
225224 * its queue by itself in its completion handler, so we don't need to
226
- * restart queue if .get_budget() returns BLK_STS_NO_RESOURCE.
225
+ * restart queue if .get_budget() fails to get the budget.
227226 *
228227 * Returns -EAGAIN if hctx->dispatch was found non-empty and run_work has to
229228 * be run again. This is necessary to avoid starving flushes.