mmc: Improve block layer requeueing behavior
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 12 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | block: Requeue req as head if driver touched itblock/ | +1 | 2 replies | |
| 2/3 | mmc: block: Limit queue size for consecutive requeuesdrivers/ | +2 | 1 reply | |
| 3/3 | mmc: block: Requeue on block size restrictionsdrivers/ | +9 | 1 reply |
Reviews trailers per patch
1 of 3 patches has a Reviewed-by or Acked-by.
| Patch | Ulf Hansson |
|---|---|
| 1/3 | R-b |
| 2/3 | |
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/3] mmc: Improve block layer requeueing behavior
Mmcblk relies on block layer requeueing to fulfill some requests under certain conditions. Improve the handling to get nicely ordered requests.
Using the terms a bit loosely to get a point across:
Current behavior for 512 blksz and max_blk_count = 1 the scenario would be as follows:
- request for page 0 lba 0 to 7
- request for page 1 lba 8 to 15
- request for page 2 lba 16 to 23
- request for page 3 lba 24 to 31
mmcblk modifies data->blocks = 1 for each and requeues, this leads to:
Access lba 0
Access lba 8
Access lba 16
Access lba 24
Access lba 1 (1. Requeue for page 0)
Access lba 9 (1. Requeue for page 1)
Access lba 17 (1. Requeue for page 2)
Access lba 25 (1. Requeue for page 3)
Access lba 2 (2. Requeue for page 0)
...
Of course we would rather have lbas consecutive. Hyperstone GmbH | Reichenaustr. 39a | 78467 Konstanz Managing Director: Dr. Jan Peter Berns. Commercial register of local courts: Freiburg HRB381782