From: David Woodhouse <dwmw2@infradead.org>
To: Alexander Larsson <alex@cendio.se>
Cc: mtd@infradead.org
Subject: Re: mtd comments
Date: Tue, 14 Mar 2000 17:17:37 +0000 [thread overview]
Message-ID: <23331.953054257@devel2.axiom.internal> (raw)
In-Reply-To: <Pine.LNX.3.96.1000308093421.13423C-100000@biffen.cendio.se>
> > If they're actually called with a kernel-space buffer, we use
> > set_fs(KERNEL_DS) beforehand, which handles the rest of your question.
alex@cendio.se said:
> Oh, i didn't know about that trick. Well that seems like a good idea
> then. I suppose we have to fix all driver too.
I'm not convinced that this is such a good idea. While copy_to_user() is free
on decent CPUs, we expect people to be using 386en for embedded systems, and
copy_to_user() is unnecessary overhead.
The only front end which copies directly to userspace is the chardevice, isn't
it? Everything else copies to kernel-space. As the chardevice is mainly a
hacking and config tool - it's generally only used to put the filesystem on
the device in the first place - I think it's best to slow it down rather than
slowing down everything else - i.e. to make it allocate buffers and copy to
userspace itself.
--
dwmw2
To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org
next prev parent reply other threads:[~2000-03-14 17:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-03-01 17:47 mtd comments Alexander Larsson
2000-03-07 19:42 ` David Woodhouse
2000-03-08 9:01 ` Alexander Larsson
2000-03-08 10:15 ` David Woodhouse
2000-03-08 10:21 ` Alexander Larsson
2000-03-14 17:17 ` David Woodhouse [this message]
2000-03-14 17:23 ` Alexander Larsson
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=23331.953054257@devel2.axiom.internal \
--to=dwmw2@infradead.org \
--cc=alex@cendio.se \
--cc=mtd@infradead.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