linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHSET v3] sbitmap optimizations
@ 2018-11-30  2:09 Jens Axboe
  2018-11-30  2:09 ` [PATCH 1/2] sbitmap: ammortize cost of clearing bits Jens Axboe
  2018-11-30  2:09 ` [PATCH 2/2] sbitmap: optimize wakeup check Jens Axboe
  0 siblings, 2 replies; 5+ messages in thread
From: Jens Axboe @ 2018-11-30  2:09 UTC (permalink / raw)
  To: linux-block, osandov

The v2 posting got screwed up somehow, sending a v3 just to make
sure things are sane.

Changes:

- Dropped the alignment patch, it should not be needed unless we have
  debugging enabled of some sort.

- Fumbled the optimized wakeup, it's important we match prep + finish
  with that interface.

-- 
Jens Axboe



^ permalink raw reply	[flat|nested] 5+ messages in thread
* [PATCHSET v4] sbitmap optimizations
@ 2018-11-30 16:01 Jens Axboe
  2018-11-30 16:01 ` [PATCH 2/2] sbitmap: optimize wakeup check Jens Axboe
  0 siblings, 1 reply; 5+ messages in thread
From: Jens Axboe @ 2018-11-30 16:01 UTC (permalink / raw)
  To: linux-block, osandov

This versions tests out solid, and we're still seeing the same
improvements.

Changes:

- Lock map index for the move. This eliminates the race completely,
  since it's now not possible to find ->cleared == 0 while swap of
  bits is in progress. The previous version was fine for users that
  re-check after having added themselves to the waitqueue, but we
  have users that don't re-check after getting failure. This works
  for both.

- Add the new states to the blk-mq debugfs output.

- Wrap the waitqueue in a sbitmap waitqueue, so we can ensure that
  we account it properly. This means that any kind of prep+finish
  on the waitqueue will work fine, just like before.

-- 
Jens Axboe



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

end of thread, other threads:[~2018-11-30 21:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-30  2:09 [PATCHSET v3] sbitmap optimizations Jens Axboe
2018-11-30  2:09 ` [PATCH 1/2] sbitmap: ammortize cost of clearing bits Jens Axboe
2018-11-30  2:09 ` [PATCH 2/2] sbitmap: optimize wakeup check Jens Axboe
  -- strict thread matches above, loose matches on Subject: below --
2018-11-30 16:01 [PATCHSET v4] sbitmap optimizations Jens Axboe
2018-11-30 16:01 ` [PATCH 2/2] sbitmap: optimize wakeup check Jens Axboe
2018-11-30 21:37   ` Omar Sandoval

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).