Linux ATA/IDE development
 help / color / mirror / Atom feed
* [PATCH v2 -mm 0/6] revert the commit 22a9189f (cdrom: use kmalloced buffers instead of buffers on stack)
@ 2008-06-02  6:57 FUJITA Tomonori
  2008-06-02  6:57 ` [PATCH v2 -mm 1/6] block: add blk_queue_update_dma_pad FUJITA Tomonori
  0 siblings, 1 reply; 12+ messages in thread
From: FUJITA Tomonori @ 2008-06-02  6:57 UTC (permalink / raw)
  To: linux-scsi, linux-ide
  Cc: jens.axboe, tsbogend, bzolnier, petkovbb, James.Bottomley, jeff,
	davem, akpm, fujita.tomonori

This is an updated version of the patchset to revert the commit
22a9189fd073db3d03a4cf8b8c098aa207602de1 (cdrom: use kmalloced buffers
instead of buffers on stack):

http://marc.info/?l=linux-scsi&m=121125981930673&w=2

The major change is that this version avoids DMA on the stack on all
the platforms (for simplicity) while the previous version uses the
dma_pad_mask on a non-coherent platform (in a bit hacky way).

With thic patchset, blk_rq_map_kern() always uses the bounce buffers
if a caller passes a stack buffer.

ide-cd has a mechanism to handle DMA alignment and padding for
SG_IO. This patchset extends the mechanism with regard to a stack
buffer.

This patchset is against -mm, replaces the following patches in -mm:

cdrom-revert-commit-22a9189-cdrom-use-kmalloced-buffers-instead-of-buffers-on-stack.patch
ide-use-the-dma-safe-check-for-req_type_ata_pc.patch 
block-add-blk_queue_update_dma_pad.patch 
block-use-arch_kmalloc_minalign-as-the-default-dma-pad-mask.patch

The diffstat is:

 block/blk-map.c           |    5 +
 block/blk-settings.c      |   24 ++++-
 drivers/ata/libata-scsi.c |    3 +-
 drivers/cdrom/cdrom.c     |  274 +++++++++++++++------------------------------
 drivers/ide/ide-cd.c      |   22 +++-
 drivers/scsi/sr.c         |   20 +---
 include/linux/blkdev.h    |    1 +
 7 files changed, 143 insertions(+), 206 deletions(-)



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2008-06-09 17:44 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-02  6:57 [PATCH v2 -mm 0/6] revert the commit 22a9189f (cdrom: use kmalloced buffers instead of buffers on stack) FUJITA Tomonori
2008-06-02  6:57 ` [PATCH v2 -mm 1/6] block: add blk_queue_update_dma_pad FUJITA Tomonori
2008-06-02  6:57   ` [PATCH v2 -mm 2/6] ide: use the dma safe check for REQ_TYPE_ATA_PC FUJITA Tomonori
2008-06-02  6:57     ` [PATCH v2 -mm 3/6] block: blk_rq_map_kern uses the bounce buffers for stack buffers FUJITA Tomonori
2008-06-02  6:57       ` [PATCH v2 -mm 4/6] ide: avoid DMA on the stack for REQ_TYPE_ATA_PC FUJITA Tomonori
2008-06-02  6:57         ` [PATCH v2 -mm 5/6] scsi: sr avoids useless buffer allocation FUJITA Tomonori
2008-06-02  6:57           ` [PATCH v2 -mm 6/6] cdrom: revert commit 22a9189 (cdrom: use kmalloced buffers instead of buffers on stack) FUJITA Tomonori
2008-06-02 19:14         ` [PATCH v2 -mm 4/6] ide: avoid DMA on the stack for REQ_TYPE_ATA_PC Borislav Petkov
2008-06-05 16:10         ` James Bottomley
2008-06-05 19:14           ` Borislav Petkov
2008-06-07  4:45           ` FUJITA Tomonori
2008-06-09 17:44           ` Roman Zippel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox