Re: Any reason to use put_page in slub.c?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 1 Aug 2012, Glauber Costa wrote:

> I've audited all users of get_page() in the drivers/ directory for
> patterns like this. In general, they kmalloc something like a table of
> entries, and then get_page() the entries. The entries are either user
> pages, pages allocated by the page allocator, or physical addresses
> through their pfn (in 2 cases from the vga ones...)
>
> I took a look about some other instances where virt_to_page occurs
> together with kmalloc as well, and they all seem to fall in the same
> category.

The case that was notorious in the past was a scsi control structure
allocated from slab that was then written to the device via DMA. And it
was not on x86 but some esoteric platform (powerpc?),

A reference to the discussion of this issue in 2007:

http://lkml.indiana.edu/hypermail/linux/kernel/0706.3/0424.html

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]