.. | .. |
---|
45 | 45 | } |
---|
46 | 46 | |
---|
47 | 47 | /* |
---|
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. |
---|
50 | 49 | */ |
---|
51 | 50 | void blk_mq_sched_mark_restart_hctx(struct blk_mq_hw_ctx *hctx) |
---|
52 | 51 | { |
---|
.. | .. |
---|
109 | 108 | /* |
---|
110 | 109 | * Only SCSI implements .get_budget and .put_budget, and SCSI restarts |
---|
111 | 110 | * 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. |
---|
113 | 112 | * |
---|
114 | 113 | * Returns -EAGAIN if hctx->dispatch was found non-empty and run_work has to |
---|
115 | 114 | * be run again. This is necessary to avoid starving flushes. |
---|
.. | .. |
---|
223 | 222 | /* |
---|
224 | 223 | * Only SCSI implements .get_budget and .put_budget, and SCSI restarts |
---|
225 | 224 | * 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. |
---|
227 | 226 | * |
---|
228 | 227 | * Returns -EAGAIN if hctx->dispatch was found non-empty and run_work has to |
---|
229 | 228 | * be run again. This is necessary to avoid starving flushes. |
---|