linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHSET v2 0/5] Alloc batch fixes
@ 2021-11-04 15:21 Jens Axboe
  2021-11-04 15:22 ` [PATCH 1/5] block: have plug stored requests hold references to the queue Jens Axboe
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Jens Axboe @ 2021-11-04 15:21 UTC (permalink / raw)
  To: linux-block

Hi,

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 v1:

- Reshuffle series to do plug rq alloc helper before enter changes
- Protect submit_bio_checks() by queue enter reference as well

-- 
Jens Axboe



^ permalink raw reply	[flat|nested] 8+ messages in thread
* [PATCHSET v3 0/5] Alloc batch fixes
@ 2021-11-04 18:21 Jens Axboe
  2021-11-04 18:22 ` [PATCH 5/5] block: ensure cached plug request matches the current queue Jens Axboe
  0 siblings, 1 reply; 8+ messages in thread
From: Jens Axboe @ 2021-11-04 18:21 UTC (permalink / raw)
  To: linux-block; +Cc: hch

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

-- 
Jens Axboe



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-11-04 18:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-04 15:21 [PATCHSET v2 0/5] Alloc batch fixes Jens Axboe
2021-11-04 15:22 ` [PATCH 1/5] block: have plug stored requests hold references to the queue Jens Axboe
2021-11-04 15:22 ` [PATCH 2/5] block: make blk_try_enter_queue() available for blk-mq Jens Axboe
2021-11-04 15:22 ` [PATCH 3/5] block: move plug rq alloc into helper Jens Axboe
2021-11-04 15:22 ` [PATCH 4/5] block: move queue enter logic into blk_mq_submit_bio() Jens Axboe
2021-11-04 15:22 ` [PATCH 5/5] block: ensure cached plug request matches the current queue Jens Axboe
2021-11-04 18:21 [PATCHSET v3 0/5] Alloc batch fixes Jens Axboe
2021-11-04 18:22 ` [PATCH 5/5] block: ensure cached plug request matches the current queue Jens Axboe
2021-11-04 18:36   ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).