[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20180604175957.2647-2-adam.manzanares@wdc.com>
Date: Mon, 4 Jun 2018 10:59:57 -0700
From: adam.manzanares@....com
To: viro@...iv.linux.org.uk, linux-fsdevel@...r.kernel.org
Cc: axboe@...nel.dk, bcrl@...ck.org, mingo@...nel.org,
tglx@...utronix.de, kstewart@...uxfoundation.org,
peterz@...radead.org, pombredanne@...b.com,
gregkh@...uxfoundation.org, bigeasy@...utronix.de,
rgoldwyn@...e.com, linux-block@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-aio@...ck.org,
linux-api@...r.kernel.org, hch@...radread.org, jmoyer@...hat.com,
willy@...radead.org, smfrench@...il.com,
Adam Manzanares <adam.manzanares@....com>
Subject: [PATCH 2/2] fs: aio ioprio use ioprio_check_cap ret val
From: Adam Manzanares <adam.manzanares@....com>
Previously the value was ignored.
Signed-off-by: Adam Manzanares <adam.manzanares@....com>
---
fs/aio.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/aio.c b/fs/aio.c
index 9527ededa669..134e5b635d64 100644
--- a/fs/aio.c
+++ b/fs/aio.c
@@ -1443,8 +1443,8 @@ static int aio_prep_rw(struct kiocb *req, struct iocb *iocb)
*/
ret = ioprio_check_cap(iocb->aio_reqprio);
if (ret) {
- pr_debug("aio ioprio check cap error\n");
- return -EINVAL;
+ pr_debug("aio ioprio check cap error: %d\n", ret);
+ return ret;
}
req->ki_ioprio = iocb->aio_reqprio;
--
2.17.0
Powered by blists - more mailing lists