From: Matt Porter <porter@cox.net>
To: "David S. Miller" <davem@redhat.com>
Cc: Matt Porter <porter@cox.net>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH][2.4] update ref counts on all allocated pages
Date: Wed, 27 Nov 2002 08:25:56 -0700 [thread overview]
Message-ID: <20021127082556.A26524@home.com> (raw)
In-Reply-To: <1038393091.14825.0.camel@rth.ninka.net>; from davem@redhat.com on Wed, Nov 27, 2002 at 02:31:31AM -0800
On Wed, Nov 27, 2002 at 02:31:31AM -0800, David S. Miller wrote:
> On Tue, 2002-11-26 at 16:07, Matt Porter wrote:
> > The following patch sets the ref count on all pages of an
> > allocation. This allows an allocation with order>0 to be freed
> > via individual __free_page() calls within vfree().
>
> If your pci_alloc_consistent implementation is doing something
> strang, _it_ should be doing the per-page reference counts.
>
> Don't make every caller eat this overhead.
I'm surprised that's the recommended solution. It seems pretty
dangerous to have allocated pages in the system where the per-page
ref counts are bogus.
To clarify then, on an order>0 allocation, it is only valid/defined
to free the same order of pages. Is that a true statement? If so,
I'll submit a docs patch and adjust our our local implementation.
Thanks,
--
Matt Porter
porter@cox.net
This is Linux Country. On a quiet night, you can hear Windows reboot.
next prev parent reply other threads:[~2002-11-27 14:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-27 0:07 Matt Porter
2002-11-27 10:31 ` David S. Miller
2002-11-27 15:25 ` Matt Porter [this message]
2002-11-28 3:33 ` David S. Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20021127082556.A26524@home.com \
--to=porter@cox.net \
--cc=davem@redhat.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®