linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Steve French <smfrench@gmail.com>
To: Matthew Wilcox <willy@infradead.org>
Cc: Jens Axboe <axboe@kernel.dk>,
	Adam Manzanares <Adam.Manzanares@wdc.com>,
	Christoph Hellwig <hch@lst.de>, Al Viro <viro@zeniv.linux.org.uk>,
	kbuild test robot <lkp@intel.com>,
	"kbuild-all@01.org" <kbuild-all@01.org>,
	"linux-fsdevel@vger.kernel.org" <linux-fsdevel@vger.kernel.org>,
	Jeff Moyer <jmoyer@redhat.com>, Steve French <sfrench@samba.org>,
	CIFS <linux-cifs@vger.kernel.org>,
	linux-nfs@vger.kernel.org
Subject: Re: [vfs:work.aio 10/12] fs/aio.c:1444: undefined reference to `ioprio_check_cap'
Date: Fri, 1 Jun 2018 15:31:46 -0500	[thread overview]
Message-ID: <CAH2r5muVt9usKJX0Xmsf3oxYhAu0m8G5VZc8AUb0fh1+h-y3JA@mail.gmail.com> (raw)
In-Reply-To: <20180601172835.GA29651@bombadil.infradead.org>

On Fri, Jun 1, 2018 at 12:28 PM, Matthew Wilcox <willy@infradead.org> wrote:
> On Fri, Jun 01, 2018 at 09:59:03AM -0600, Jens Axboe wrote:
>> On 6/1/18 9:57 AM, Adam Manzanares wrote:
>> >
>> >
>> > On 6/1/18 8:41 AM, Jens Axboe wrote:
>> >> On 6/1/18 9:38 AM, Adam Manzanares wrote:
>> >>> On 5/31/18 10:13 PM, Christoph Hellwig wrote:
>> >>>>> +extern int ioprio_check_cap(int ioprio);
>> >>>>
>> >>>> Which then is implemented in block/ioprio.c, which depends on
>> >>>> CONFIG_BLOCK.  The code either needs a stub for !CONFIG_BLOCK
>> >>>> or moved elsewhere.
>> >>>
>> >>> My vote would be to move the ioprio code into fs/. At first glance I do
>> >>> not see a dependence on the block layer in block/ioprio.c.
>> >>>
>> >>> Any objections?
>> >>
>> >> Since it's block ioprio code, I'd prefer a stub instead.
>> >>
>> >
>> > This feature could be used independently from the block layer. We have
>> > examples (ATA, hopefully NVME soon) where we are reacting to the ioprio
>> > in the device drivers essentially passing the ioprio through the block
>> > layer.
>>
>> It could, yes, but it isn't. As it stands, it's system call support to
>> pass in IO priority for what ultimately is block storage.
>
> I think it'd be interesting if NFS/SMB decided to start using it.
> I think SMB has the concept of io priorities within a single stream ...
> Steve?

Yes - in theory SMB3 does, but I need to research this more to
see if useable here.  Will also discuss with others at SambaXP to see
if ideas from others.  Also note that SMB3 has a per-io flag (for read
and write) that allows "unbuffered" and "writethrough" to be set on
a per operation basis (not just on a per-file handle basis).  Would
be interesting if we could get hints on when to set these flags
on a per-operation basis (rather than just on the handle at
open time).

-- 
Thanks,

Steve

      reply	other threads:[~2018-06-01 20:32 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-01  0:36 [vfs:work.aio 10/12] fs/aio.c:1444: undefined reference to `ioprio_check_cap' kbuild test robot
2018-06-01  0:54 ` Al Viro
2018-06-01  1:02   ` Al Viro
2018-06-01  1:12     ` [kbuild-all] " Li, Philip
2018-06-01  5:13   ` Christoph Hellwig
2018-06-01 15:38     ` Adam Manzanares
2018-06-01 15:41       ` Jens Axboe
2018-06-01 15:57         ` Adam Manzanares
2018-06-01 15:59           ` Jens Axboe
2018-06-01 17:28             ` Matthew Wilcox
2018-06-01 20:31               ` Steve French [this message]

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=CAH2r5muVt9usKJX0Xmsf3oxYhAu0m8G5VZc8AUb0fh1+h-y3JA@mail.gmail.com \
    --to=smfrench@gmail.com \
    --cc=Adam.Manzanares@wdc.com \
    --cc=axboe@kernel.dk \
    --cc=hch@lst.de \
    --cc=jmoyer@redhat.com \
    --cc=kbuild-all@01.org \
    --cc=linux-cifs@vger.kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-nfs@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=sfrench@samba.org \
    --cc=viro@zeniv.linux.org.uk \
    --cc=willy@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;
as well as URLs for NNTP newsgroup(s).