Commit 16469a8
blk-ioc: convert to use ioc_lookup_icq_rcu()
Now ioc_lookup_icq() is only called from bfq_prepare_request() from
IO issue path, if it's the first time current issue IO to the disk,
'queue_lock' will be held to creat new icq, otherwise it's safe to
use the new helper. Noted if multiple task share one ioc, and
ioc_create_icq() raced, queue_lock is used to serialize them and only
the first one can succeed inserting icq to ioc.
Also remove ioc_lookup_icq() that is not used now.
Signed-off-by: Yu Kuai <[email protected]>1 parent 24595ca commit 16469a8
2 files changed
+4
-41
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | 310 | | |
347 | 311 | | |
348 | 312 | | |
| |||
420 | 384 | | |
421 | 385 | | |
422 | 386 | | |
423 | | - | |
| 387 | + | |
424 | 388 | | |
425 | 389 | | |
426 | 390 | | |
| |||
454 | 418 | | |
455 | 419 | | |
456 | 420 | | |
457 | | - | |
458 | | - | |
459 | | - | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
460 | 424 | | |
461 | 425 | | |
462 | 426 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
460 | 460 | | |
461 | 461 | | |
462 | 462 | | |
463 | | - | |
464 | 463 | | |
465 | 464 | | |
466 | 465 | | |
| |||
0 commit comments