[lkml]   [2006]   [Jun]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH 4/5] SCSI: add cpu cache flushes after kmapping and modifying a page
    On Sun, Jun 04, 2006 at 12:41:20PM +0900, Tejun Heo wrote:
    > local_irq_save(flags);
    > buf = kmap_atomic(sg->page, KM_IRQ0) + sg->offset;
    > memcpy(buf, tw_dev->generic_buffer_virt[request_id], sg->length);
    > + flush_kernel_dcache_page(kmap_atomic_to_page(buf - sg->offset));
    > kunmap_atomic(buf - sg->offset, KM_IRQ0);
    > local_irq_restore(flags);

    all these should switch to scsi_kmap_atomic_sg which should do the
    flush_kernel_dcache_page call for you.

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2006-06-04 10:23    [W:0.056 / U:120.928 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site