mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-04 04:06:26 +00:00
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>
This commit is contained in:
parent
b0966e7b89
commit
9a6d9a62e0
4
fs/aio.c
4
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;
|
||||
|
Loading…
Reference in New Issue
Block a user