ide-cd: use scatterlists also for PIO transfers
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest20 patches 2 repliesIn review
Patches in v1 No applies recorded yet
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/20] ide-cd: use scatterlists also for PIO transfers
The recent struct ide_cmd work allows us to finally convert ide-cd to use scatterlists for PIO transfers which fixes a long-standing bug with potential data integrity issue on write errors for PIO transfers and fs/pc requests (DMA transfers were never affected so it is not as serious issue as it might sound, still great that it is gone), greatly simiplifies the code and prepares it for a lot more improvements once struct ide_{atapi_pc,cmd} merge is done.
The patchset also contains fixes for some smaller issues uncovered by the main change and (as an added bonus) few unrelated minor cleanups.
[ Borislav, I hope that these changes don't interfere too much with your
current work and sorry for the rush (OTOH it should make things so much easier for us that the rush may be well justified)... ]
I tested that CD/DVD reading, CD writing and CD audio extraction still work after these changes (in both PIO and DMA modes). I also verified the behavior on the simulated media errors.
[ on top of pata-2.6 tree ]
diffstat:
drivers/ide/ide-cd.c | 638 +++++++++++++++------------------------------ drivers/ide/ide-taskfile.c | 92 +++--- include/linux/ide.h | 9 3 files changed, 273 insertions(+), 466 deletions(-)