diff options
author | Adam Manzanares <adam.manzanares@wdc.com> | 2018-06-04 10:59:57 -0700 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2018-06-04 14:20:39 -0400 |
commit | 9a6d9a62e0fd4b9927c3124db0f25fc6b4fb6576 (patch) | |
tree | 00a2c2cb5553ddc45589d0b9b7833c1be7eba4e3 /fs/aio.c | |
parent | b0966e7b894035dba6710aa4e9f18d7a3a3d5b22 (diff) | |
download | linux-9a6d9a62e0fd4b9927c3124db0f25fc6b4fb6576.tar.gz linux-9a6d9a62e0fd4b9927c3124db0f25fc6b4fb6576.tar.bz2 linux-9a6d9a62e0fd4b9927c3124db0f25fc6b4fb6576.zip |
fs: aio ioprio use ioprio_check_cap ret val
Previously the value was ignored.
Signed-off-by: Adam Manzanares <adam.manzanares@wdc.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/aio.c')
-rw-r--r-- | fs/aio.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |