From: Pieter Smith <pieter@boesman.nl>
To: Greg KH <gregkh@linuxfoundation.org>
Cc: josh@joshtriplett.org,
"Richard Weinberger" <richard.weinberger@gmail.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
"Bertrand Jacquin" <beber@meleeweb.net>,
"Oleg Nesterov" <oleg@redhat.com>,
"J. Bruce Fields" <bfields@fieldses.org>,
"Eric Dumazet" <edumazet@google.com>,
蔡正龙 <zhenglong.cai@cs2c.com.cn>,
"Jeff Layton" <jlayton@poochiereds.net>,
"Tom Herbert" <therbert@google.com>,
"Alexei Starovoitov" <ast@plumgrid.com>,
"Miklos Szeredi" <miklos@szeredi.hu>,
"Peter Foley" <pefoley2@pefoley.com>,
"Hugh Dickins" <hughd@google.com>,
"Xiao Guangrong" <xiaoguangrong@linux.vnet.ibm.com>,
"Geert Uytterhoeven" <geert@linux-m68k.org>,
"Mel Gorman" <mgorman@suse.de>,
"Matt Turner" <mattst88@gmail.com>,
"Paul E. McKenney" <paulmck@linux.vnet.ibm.com>,
"Alexander Duyck" <alexander.h.duyck@intel.com>,
"open list:FUSE: FILESYSTEM..."
<fuse-devel@lists.sourceforge.net>,
"Luis R. Rodriguez" <mcgrof@suse.com>,
"Catalina Mocanu" <catalina.mocanu@gmail.com>,
"Fabian Frederick" <fabf@skynet.be>,
"Thomas Graf" <tgraf@suug.ch>,
"Paul Durrant" <Paul.Durrant@citrix.com>,
"Alexander Viro" <viro@zeniv.linux.org.uk>,
"Jan Beulich" <JBeulich@suse.com>,
"Willem de Bruijn" <willemb@google.com>,
"Iulia Manda" <iulia.manda21@gmail.com>,
"open list:ABI/API" <linux-api@vger.kernel.org>,
"open list" <linux-kernel@vger.kernel.org>,
"Daniel Borkmann" <dborkman@redhat.com>,
"Eric W. Biederman" <ebiederm@xmission.com>,
"open list:NETWORKING [GENERAL]" <netdev@vger.kernel.org>,
linux-fsdevel <linux-fsdevel@vger.kernel.org>,
"Andrew Morton" <akpm@linux-foundation.org>,
"David S. Miller" <davem@davemloft.net>
Subject: Re: [fuse-devel] [PATCH 4/6] fs/fuse: support compiling out splice
Date: Mon, 24 Nov 2014 22:49:26 +0100 [thread overview]
Message-ID: <20141124214926.GA9371@smipidev> (raw)
In-Reply-To: <20141124202214.GA11362@kroah.com>
On Mon, Nov 24, 2014 at 12:22:14PM -0800, Greg KH wrote:
> On Mon, Nov 24, 2014 at 12:14:50PM -0800, josh@joshtriplett.org wrote:
> > > I would, again, argue that stuff like __splice_p() not be implemented at
> > > all please. It will only cause a huge proliferation of stuff like this
> > > that will not make any sense, and only cause a trivial, if any, amount
> > > of code savings.
> > >
> > > I thought you were going to not do this type of thing until you got the
> > > gcc optimizer working for function callbacks.
> >
> > Compared to the previous patchset, there are now only two instances of
> > ifdefs outside of the splice code for this, and this is one of them. In
> > this case, the issue is no longer about making the code for this
> > splice_read function disappear, but rather to eliminate a reference to a
> > bit of splice functionality (used *inside* the FUSE splice code) that
> > will not work without SPLICE_SYSCALL.
> >
> > Would you prefer to see this specific case handled via an #ifdef in
> > fs/fuse/dev.c rather than introducing a __splice_p that people might be
> > inclined to propagate? That'd be fine; the code could simply wrap
> > fuse_dev_splice_read in an #ifdef and have the #else define a NULL
> > fuse_dev_splice_read.
>
> Yes, I would prefer that, but I'm not the fuse maintainer.
>
> thanks,
>
> greg k-h
Okay. I'll do my part to prevent the type of proliferation guaranteed to rate
high on the respected K-H icky-scale. __splice_p() goes the way of the dodo
in favor of the solution presented by Josh.
I pray that the Gods of fuse maintenance will look favorable upon the result.
next prev parent reply other threads:[~2014-11-24 21:49 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-23 14:20 [PATCH 0/6] kernel tinification: optionally compile out splice family of syscalls (splice, vmsplice, tee and sendfile) Pieter Smith
2014-11-23 14:20 ` [PATCH 1/6] fs: move sendfile syscall into fs/splice Pieter Smith
2014-11-23 14:20 ` [PATCH 2/6] fs: moved kernel_write to fs/read_write Pieter Smith
2014-11-23 14:20 ` [PATCH 3/6] fs/splice: support compiling out splice-family syscalls Pieter Smith
2014-11-23 14:20 ` [PATCH 4/6] fs/fuse: support compiling out splice Pieter Smith
2014-11-23 22:29 ` [fuse-devel] " Richard Weinberger
2014-11-23 23:23 ` Josh Triplett
2014-11-24 9:49 ` Pieter Smith
2014-11-24 16:05 ` Josh Triplett
2014-11-24 19:34 ` Greg KH
2014-11-24 20:14 ` josh
2014-11-24 20:22 ` Greg KH
2014-11-24 21:49 ` Pieter Smith [this message]
2014-11-23 14:20 ` [PATCH 5/6] net/core: " Pieter Smith
2014-11-23 14:20 ` [PATCH 6/6] fs/splice: full support for " Pieter Smith
2014-11-23 18:46 ` [PATCH 0/6] kernel tinification: optionally compile out splice family of syscalls (splice, vmsplice, tee and sendfile) David Miller
2014-11-23 19:43 ` Josh Triplett
2014-11-23 20:30 ` Pieter Smith
2014-11-23 23:36 ` Josh Triplett
2014-11-24 0:28 ` Jeff Layton
2014-11-24 0:32 ` Josh Triplett
2014-11-24 10:01 ` Pieter Smith
2014-11-24 14:54 ` Josh Triplett
2014-11-24 8:38 ` Geert Uytterhoeven
2014-11-24 9:00 ` Josh Triplett
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=20141124214926.GA9371@smipidev \
--to=pieter@boesman.nl \
--cc=JBeulich@suse.com \
--cc=Paul.Durrant@citrix.com \
--cc=akpm@linux-foundation.org \
--cc=alexander.h.duyck@intel.com \
--cc=ast@plumgrid.com \
--cc=beber@meleeweb.net \
--cc=bfields@fieldses.org \
--cc=catalina.mocanu@gmail.com \
--cc=davem@davemloft.net \
--cc=dborkman@redhat.com \
--cc=ebiederm@xmission.com \
--cc=edumazet@google.com \
--cc=fabf@skynet.be \
--cc=fuse-devel@lists.sourceforge.net \
--cc=geert@linux-m68k.org \
--cc=gregkh@linuxfoundation.org \
--cc=hughd@google.com \
--cc=iulia.manda21@gmail.com \
--cc=jlayton@poochiereds.net \
--cc=josh@joshtriplett.org \
--cc=linux-api@vger.kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mattst88@gmail.com \
--cc=mcgrof@suse.com \
--cc=mgorman@suse.de \
--cc=miklos@szeredi.hu \
--cc=mst@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=oleg@redhat.com \
--cc=paulmck@linux.vnet.ibm.com \
--cc=pefoley2@pefoley.com \
--cc=richard.weinberger@gmail.com \
--cc=tgraf@suug.ch \
--cc=therbert@google.com \
--cc=viro@zeniv.linux.org.uk \
--cc=willemb@google.com \
--cc=xiaoguangrong@linux.vnet.ibm.com \
--cc=zhenglong.cai@cs2c.com.cn \
/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