Commit 4d5bba5
blk-mq: remove __blk_mq_run_hw_queue
__blk_mq_run_hw_queue just contains a WARN_ON_ONCE for calls from
interrupt context and a blk_mq_run_dispatch_ops-protected call to
blk_mq_sched_dispatch_requests. Open code the call to
blk_mq_sched_dispatch_requests in both callers, and move the WARN_ON_ONCE
to blk_mq_run_hw_queue where it can be extended to all !async calls,
while the other call is from workqueue context and thus obviously does
not need the assert.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Link: https://lore.kernel.org/r/20230413060651.694656-6-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 1aa8d87 commit 4d5bba5
1 file changed
Lines changed: 9 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2138 | 2138 | | |
2139 | 2139 | | |
2140 | 2140 | | |
2141 | | - | |
2142 | | - | |
2143 | | - | |
2144 | | - | |
2145 | | - | |
2146 | | - | |
2147 | | - | |
2148 | | - | |
2149 | | - | |
2150 | | - | |
2151 | | - | |
2152 | | - | |
2153 | | - | |
2154 | | - | |
2155 | | - | |
2156 | | - | |
2157 | | - | |
2158 | | - | |
2159 | 2141 | | |
2160 | 2142 | | |
2161 | 2143 | | |
| |||
2240 | 2222 | | |
2241 | 2223 | | |
2242 | 2224 | | |
| 2225 | + | |
| 2226 | + | |
| 2227 | + | |
| 2228 | + | |
| 2229 | + | |
2243 | 2230 | | |
2244 | 2231 | | |
2245 | 2232 | | |
| |||
2261 | 2248 | | |
2262 | 2249 | | |
2263 | 2250 | | |
2264 | | - | |
| 2251 | + | |
| 2252 | + | |
2265 | 2253 | | |
2266 | 2254 | | |
2267 | 2255 | | |
| |||
2429 | 2417 | | |
2430 | 2418 | | |
2431 | 2419 | | |
2432 | | - | |
| 2420 | + | |
| 2421 | + | |
2433 | 2422 | | |
2434 | 2423 | | |
2435 | 2424 | | |
| |||
0 commit comments