From: Andrew Morton <akpm@digeo.com>
To: Thomas Schlichter <schlicht@rumms.uni-mannheim.de>
Cc: linux-kernel@vger.kernel.org, torvalds@transmeta.com,
schulz@uni-mannheim.de
Subject: Re: [PATCH] to support hookable flush_tlb* functions
Date: Fri, 24 Jan 2003 13:21:36 -0800 [thread overview]
Message-ID: <20030124132136.765a420d.akpm@digeo.com> (raw)
In-Reply-To: <1043418252.3e314c8d0278a@rumms.uni-mannheim.de>
Thomas Schlichter <schlicht@rumms.uni-mannheim.de> wrote:
>
> Hello,
>
> with this mail I send a patch that allows kernel modules to hook into the
> different flush_tlb* functions defined in <asm/tlbflush.h> or <asm/pgtable.h> in
> order to synchronize devices TLBs.
Looks sensible enough.
A few coding-style nits:
+typedef struct tlb_hook_struct {
+...
+} tlb_hook_t;
typedefs are unpopular. Please just use
struct tlb_hook {
...
};
+static inline void flush_tlb_hook( void )
extraneous whitespace - Linus style is flush_tlb_hook(void)
+ while( hook )
while (hook)
+ {
+ if( hook->flush_tlb )
if (hook->flush_tlb)
+ hook->flush_tlb( );
hook->flush_tlb();
etc...
The unregister_hook implementation is racy - the hook could be in use on
another CPU. That's OK - we have the RCU infrastructure which will allow
hooks to be torn down safely. And nice people who can help others who are
using that code.
> The i386 patch also includes some cleanups by renaming __flush_tlb_* to
> local_flush_tlb_*.
That makes plenty of sense.
> I hope some time this patches will make it into the kernel sources. (perhaps
> even into 2.6.x ?)
Well the big questions are: where are the drivers for these devices? When
can we expect to see significant demand for these devices? Will there be
significant demand across the lifetime of the 2.6 kernel?
BTW, when you say "low latency NICs that will implement direct user space DMA
transfers to not pinned user pages", what do you mean by "not pinned"?
next prev parent reply other threads:[~2003-01-24 20:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-24 14:24 [PATCH] to support hookable flush_tlb* functions Thomas Schlichter
2003-01-24 21:21 ` Andrew Morton [this message]
2003-01-24 22:39 ` David S. Miller
2003-01-26 23:30 ` Thomas Schlichter
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=20030124132136.765a420d.akpm@digeo.com \
--to=akpm@digeo.com \
--cc=linux-kernel@vger.kernel.org \
--cc=schlicht@rumms.uni-mannheim.de \
--cc=schulz@uni-mannheim.de \
--cc=torvalds@transmeta.com \
/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