Re: [patch][cft] zero-copy dma cd writing and ripping

David S. Miller (davem@redhat.com)
Mon, 28 Oct 2002 18:27:57 -0800 (PST)


From: Jens Axboe <axboe@suse.de>
Date: Mon, 28 Oct 2002 17:18:57 +0100

A related question. get_user_pages() does page_cache_get() on the page,
except if it's reserved. First question is 'why' doesn't it do that on a
reserved page? We get this conditional when mapping, and the unmapping
needs to check for reserved as well before doing page_cache_release().
Surely the extra reference would be ok to hold for PageReserved pages
as well?

The basic behavior of the whole MM for reserved pages is supposed
to be to not do any kind of reference counting, COW'ing, etc. on
them.

Any deviation from this behavior is going to lead to problems and
can be considered a bug until some later time at which we decide
to change this behavior.

Look at how copy_page_range() deals with reserved pages, for
example. This logic is all over the VM.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/