Re: [PATCH 2/2] fs: Add aio priority support for block_dev

2018-05-02 Thread Adam Manzanares
On 5/2/18 10:33 AM, Christoph Hellwig wrote: >> --- a/fs/aio.c >> +++ b/fs/aio.c >> @@ -1603,6 +1603,15 @@ static int io_submit_one(struct kioctx *ctx, struct >> iocb __user *user_iocb, >> goto out_put_req; >> } >> >> +if (req->common.ki_flags & IOCB_IOPRIO) >> +

Re: [PATCH 2/2] fs: Add aio priority support for block_dev

2018-05-02 Thread Adam Manzanares
On 5/2/18 10:33 AM, Christoph Hellwig wrote: >> --- a/fs/aio.c >> +++ b/fs/aio.c >> @@ -1603,6 +1603,15 @@ static int io_submit_one(struct kioctx *ctx, struct >> iocb __user *user_iocb, >> goto out_put_req; >> } >> >> +if (req->common.ki_flags & IOCB_IOPRIO) >> +

Re: [PATCH 2/2] fs: Add aio priority support for block_dev

2018-05-02 Thread Christoph Hellwig
> --- a/fs/aio.c > +++ b/fs/aio.c > @@ -1603,6 +1603,15 @@ static int io_submit_one(struct kioctx *ctx, struct > iocb __user *user_iocb, > goto out_put_req; > } > > + if (req->common.ki_flags & IOCB_IOPRIO) > + /* > + * The IOCB_IOPRIO flag is

Re: [PATCH 2/2] fs: Add aio priority support for block_dev

2018-05-02 Thread Christoph Hellwig
> --- a/fs/aio.c > +++ b/fs/aio.c > @@ -1603,6 +1603,15 @@ static int io_submit_one(struct kioctx *ctx, struct > iocb __user *user_iocb, > goto out_put_req; > } > > + if (req->common.ki_flags & IOCB_IOPRIO) > + /* > + * The IOCB_IOPRIO flag is

[PATCH 2/2] fs: Add aio priority support for block_dev

2018-04-30 Thread adam . manzanares
From: Adam Manzanares When the IOCB_IOPRIO flag is set because the user supplied iocb has the RWF_IOPRIO flag is set then we set the priority value of the kiocb from the iocb. When a bio is created for an aio request by the block dev we set the priority value of the bio

[PATCH 2/2] fs: Add aio priority support for block_dev

2018-04-30 Thread adam . manzanares
From: Adam Manzanares When the IOCB_IOPRIO flag is set because the user supplied iocb has the RWF_IOPRIO flag is set then we set the priority value of the kiocb from the iocb. When a bio is created for an aio request by the block dev we set the priority value of the bio to the user supplied