rbd: switch to blk-mq
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest15 patches 9 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/15 | rbd: lock object request listdrivers/ | +28 | 1 reply | |
| 2/15 | rbd: use READ_ONCE() when checking the mapping sizedrivers/ | +6 | 2 replies | |
| 3/15 | rbd: reorder rbd_img_advance()drivers/ | +17 | 0 replies | |
| 4/15 | rbd: reorder switch statement in rbd_advance_read()drivers/ | +19 | 0 replies | |
| 5/15 | rbd: reorder switch statement in rbd_advance_write()drivers/ | +25 | 0 replies | |
| 6/15 | rbd: add 'done' state for rbd_obj_advance_copyup()drivers/ | +16 | 0 replies | |
| 7/15 | rbd: use callback for image request completiondrivers/ | +33 | 1 reply | |
| 8/15 | rbd: add debugging statements for the state machinedrivers/ | +15 | 0 replies | |
| 9/15 | rbd: count pending object requests in-linedrivers/ | +30 | 2 replies | |
| 10/15 | rbd: kill 'work_result'drivers/ | +2 | 0 replies | |
| 11/15 | rbd: drop state_mutex in __rbd_img_handle_request()drivers/ | +9 | 1 reply | |
| 12/15 | rbd: kill img_request krefdrivers/ | +5 | 0 replies | |
| 13/15 | rbd: schedule image_request after preparationdrivers/ | +15 | 1 reply | |
| 14/15 | rbd: embed image request as blk_mq request payloaddrivers/ | +37 | 0 replies | |
| 15/15 | rbd: switch to blk-mqdrivers/ | +1 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/15] rbd: switch to blk-mq
Hi all,
this patchset implements multiqueue support for rbd, which gives a nice performance benefit (I measured up to 25% on my grid). To achieve this several steps are required:
1) drop the 'state_mutex' in rbd_img_advance.
To do so the state machines had to be reordered so ensure no race windows are left when invoking asynchronous methods.
2) Embed image request into the block request to save a memory allocation in the hot path
3) Enable one queue per CPU to enhance parallelism.
I also took the opportunity to clean up the state machines, by adding a 'done' step and ensuring that the step is always set correctly upon exit. This allows for better debugging as now the final states must always be set when destroying an object.
As usual, comments and reviews are welcome.
Hannes Reinecke (15):
rbd: lock object request list
rbd: use READ_ONCE() when checking the mapping size
rbd: reorder rbd_img_advance()
rbd: reorder switch statement in rbd_advance_read()
rbd: reorder switch statement in rbd_advance_write()
rbd: add 'done' state for rbd_obj_advance_copyup()
rbd: use callback for image request completion
rbd: add debugging statements for the state machine
rbd: count pending object requests in-line
rbd: kill 'work_result'
rbd: drop state_mutex in __rbd_img_handle_request()
rbd: kill img_request kref
rbd: schedule image_request after preparation
rbd: embed image request as blk_mq request payload
rbd: switch to blk-mq
drivers/block/rbd.c | 418 ++++++++++++++++++++++++++++++---------------------- 1 file changed, 240 insertions(+), 178 deletions(-)
Signature · 1 line
2.16.4