mbox series

[PATCHSET,v3,0/5] Alloc batch fixes

Message ID 20211104182201.83906-1-axboe@kernel.dk (mailing list archive)
Headers show
Series Alloc batch fixes | expand

Message

Jens Axboe Nov. 4, 2021, 6:21 p.m. UTC
Hi,

Since the new feedback on v1 arrived post v2, here's a v3 that takes
it all into account.

A few fixes related to the batched allocations:

- Have the requests hold a queue reference, flush them on schedule
  unplug as well.

- Make sure the queue matches, could be a mismatch if we're driving
  multiple devices.

Since v2:
- Split both alloc handlers into helpers
- Retained blk_try_enter_queue() the way that it was, don't want to
  inline all of bio_queue_enter(). Added justification for that in the
  commit message.
- Add fops based submit_bio helper
Since v1:
- Reshuffle series to do plug rq alloc helper before enter changes
- Protect submit_bio_checks() by queue enter reference as well