]> git.baikalelectronics.ru Git - kernel.git/commit
block: add ioprio_check_cap function
authorAdam Manzanares <adam.manzanares@wdc.com>
Tue, 22 May 2018 17:52:17 +0000 (10:52 -0700)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 31 May 2018 14:50:54 +0000 (10:50 -0400)
commit448e340a2c91df06efd058b9fed31f7643e549ec
treedf9115b36ef602d0550e9c2626b5c53a705425ac
parent3cabac319993978adbeef364af4c670c53aa7305
block: add ioprio_check_cap function

Aio per command iopriority support introduces a second interface between
userland and the kernel capable of passing iopriority. The aio interface also
needs the ability to verify that the submitting context has sufficient
privileges to submit IOPRIO_RT commands. This patch creates the
ioprio_check_cap function to be used by the ioprio_set system call and also by
the aio interface.

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