[PATCH 00/20] ide-cd: use scatterlists also for PIO transfers

From: Bartlomiej Zolnierkiewicz
Date: Sun Feb 15 2009 - 19:12:01 EST


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(-)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/