fs: Add aio iopriority support
authorAdam Manzanares <adam.manzanares@wdc.com>
Tue, 22 May 2018 17:52:19 +0000 (10:52 -0700)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 31 May 2018 14:50:55 +0000 (10:50 -0400)
commitd9a08a9e616beeccdbd0e7262b7225ffdfa49e92
treef2f7985aa07ccee2337631273f4b906389649477
parentfc28724d67c90ff48b976e0687caf79993160bed
fs: Add aio iopriority support

This is the per-I/O equivalent of the ioprio_set system call.

When IOCB_FLAG_IOPRIO is set on the iocb aio_flags field, then we set the
newly added kiocb ki_ioprio field to the value in the iocb aio_reqprio field.

This patch depends on block: add ioprio_check_cap function.

Signed-off-by: Adam Manzanares <adam.manzanares@wdc.com>
Reviewed-by: Jeff Moyer <jmoyer@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/block/loop.c
fs/aio.c
include/linux/fs.h
include/uapi/linux/aio_abi.h