Retry Large Buffer Allocations
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest3 patches 4 repliesIn review
- v41 patch 4 repliesSuperseded
- v31 patch 1 replySuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 1 patch | 1 reply | Superseded |
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | MTD: Create Function to Perform Large Allocationsdrivers/ include/ | +43 | 0 replies | |
| 2/3 | MTD: Retry Large Buffer Allocationsdrivers/ | +23 | 0 replies | |
| 3/3 | JFFS2: Retry Large Buffer Allocationsfs/ | +11 | 1 reply |
Reviews trailers per patch
None of the 3 patches has a Reviewed-by or Acked-by.
| Patch | Ben Gardiner |
|---|---|
| Series | T-b |
| 1/3 | |
| 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 v5 0/3] Retry Large Buffer Allocations
When handling user space read or write requests via mtd_{read,write} or JFFS2 medium scan requests, the operations can fail because the code backing these operations frequently requests large (128 KiB), contiguous blocks of memory using kmalloc.
Under low-memory or highly-fragmented situations, particularly on embedded systems with no swap store, these allocations will frequently fail with -ENOMEM.
This patch series adds a common function to handle these allocation requests in both the MTD driver and JFFS2 file system by exponentially backing off on the size of the requested kernel transfer buffer until it succeeds or until the requested transfer buffer size falls below the page size.
This helps ensure the operation can succeed under low-memory, highly-fragmented situations albeit somewhat more slowly.
v2: Incorporated coding style and comment feedback from Artem.
v3: Incorporated more feedback from Artem. Retargeted patch against
l2-mtd-2.6.
v4: Incorporated feedback from Artem about compilation on 64-bit
architectures.
v5: Split the patch into a series.
---