Re: Oops in a driver while using SLUB as a SLAB allocator

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Christoph Lameter
Date: Monday, June 25, 2007 - 10:00 am

On Mon, 25 Jun 2007, Hugh Dickins wrote:


It is definitely intended to work. Otherwise we would not have code 
like this:

christoph@fly:~/linux-2.6$ find . -name "*.c" | xargs grep "flush_dcache_page"|grep virt
./drivers/scsi/scsi_tgt_if.c:   flush_dcache_page(virt_to_page(ev));
./drivers/scsi/scsi_tgt_if.c:           flush_dcache_page(virt_to_page(ev));



Ok. I think your patch is fine as a quick fix for 2.6.22. I am a bit 
uneasy with that given that its in such a broadly used function while its 
only use is to enable flush_dcache_page to work. But we need the general 
issue taken care of after 2.6.22.


As explained about: There are corner cases in which it does not work. You 
seem to assume that flush_dcache_page can become a no op. That may not be 
true on platforms that need explicit cache flushing for a DMA engine to 
access a data structure. The above listed use suggests that the caller 
expects flushing to occur correctly.



-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Oops in a driver while using SLUB as a SLAB allocator, Nicolas Ferre, (Thu Jun 21, 2:30 am)
Re: Oops in a driver while using SLUB as a SLAB allocator, Nicolas Ferre, (Thu Jun 21, 8:54 am)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Thu Jun 21, 6:01 pm)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Thu Jun 21, 6:36 pm)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Thu Jun 21, 6:41 pm)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Thu Jun 21, 10:10 pm)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Thu Jun 21, 10:13 pm)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Thu Jun 21, 10:31 pm)
Re: Oops in a driver while using SLUB as a SLAB allocator, Hugh Dickins, (Thu Jun 21, 10:37 pm)
[PATCH] mmc-atmel : fix kunmap wrong usage, Marc Pignat, (Thu Jun 21, 11:28 pm)
Re: Oops in a driver while using SLUB as a SLAB allocator, Russell King, (Fri Jun 22, 12:00 am)
Re: Oops in a driver while using SLUB as a SLAB allocator, Nicolas Ferre, (Fri Jun 22, 2:09 am)
Re: [PATCH] mmc-atmel : fix kunmap wrong usage, Hugh Dickins, (Fri Jun 22, 5:00 am)
Re: [PATCH] mmc-atmel : fix kunmap wrong usage, Nicolas Ferre, (Fri Jun 22, 6:34 am)
Re: [PATCH] mmc-atmel : fix kunmap wrong usage, Hugh Dickins, (Fri Jun 22, 6:46 am)
Re: [PATCH] mmc-atmel : fix kunmap wrong usage, Marc Pignat, (Fri Jun 22, 7:21 am)
Re: [PATCH] mmc-atmel : fix kunmap wrong usage, Marc Pignat, (Fri Jun 22, 7:58 am)
Re: Oops in a driver while using SLUB as a SLAB allocator, Linus Torvalds, (Fri Jun 22, 9:40 am)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Fri Jun 22, 10:26 am)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Fri Jun 22, 10:41 am)
Re: Oops in a driver while using SLUB as a SLAB allocator, Hugh Dickins, (Fri Jun 22, 11:39 am)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Fri Jun 22, 11:51 am)
Re: [PATCH] mmc-atmel : fix kunmap wrong usage, Jens Axboe, (Fri Jun 22, 12:00 pm)
Re: Oops in a driver while using SLUB as a SLAB allocator, Hugh Dickins, (Fri Jun 22, 12:01 pm)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Fri Jun 22, 12:11 pm)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Fri Jun 22, 1:15 pm)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Fri Jun 22, 3:54 pm)
Re: Oops in a driver while using SLUB as a SLAB allocator, Nicolas Ferre, (Mon Jun 25, 6:55 am)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Mon Jun 25, 7:07 am)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Mon Jun 25, 10:00 am)
Re: Oops in a driver while using SLUB as a SLAB allocator, Hugh Dickins, (Mon Jun 25, 10:23 am)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Mon Jun 25, 11:23 am)
Re: Oops in a driver while using SLUB as a SLAB allocator, Hugh Dickins, (Mon Jun 25, 11:43 am)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Mon Jun 25, 11:50 am)
Re: Oops in a driver while using SLUB as a SLAB allocator, Hugh Dickins, (Mon Jun 25, 12:04 pm)
Re: Oops in a driver while using SLUB as a SLAB allocator, Christoph Lameter, (Tue Jun 26, 11:09 am)