Don't allow REQ_NOWAIT for bio splitting
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 7 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | block: handle bio_split_to_limits() NULL returnblock/ block/ drivers/ +5 more | +19 | 3 replies | |
| 2/2 | block: don't allow splitting of a REQ_NOWAIT bioblock/ | +10 | 4 replies |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Keith Busch |
|---|---|
| 1/2 | |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/2] Don't allow REQ_NOWAIT for bio splitting
Hi,
If we end up needing to split a bio that is marked with REQ_NOWAIT, it's entirely possible that any part of the split bio will hit a failure trying to get submitted. If this happens, then the entire request ends up being errored with BLK_STS_AGAIN, even if any parts of this bio has been read or written to the device/file.
Rather than end up in this odd state, disallow splitting with REQ_NOWAIT. If we end the entire request upfront with EAGAIN, then we don't end up with a partially written IO that still returns EAGAIN.
Signature · 1 line
Jens Axboe