fs: add an iopoll method to struct file_operations
authorChristoph Hellwig <[email protected]>
Thu, 22 Nov 2018 15:37:38 +0000 (16:37 +0100)
committerJens Axboe <[email protected]>
Sun, 24 Feb 2019 15:20:17 +0000 (08:20 -0700)
commitfb7e160019f4abb4082740bfeb27a38f6389c745
tree7898b05dee28219f4a573c7b31249c733c570b49
parent758a58d0bc67457f1215321a536226654a830eeb
fs: add an iopoll method to struct file_operations

This new methods is used to explicitly poll for I/O completion for an
iocb.  It must be called for any iocb submitted asynchronously (that
is with a non-null ki_complete) which has the IOCB_HIPRI flag set.

The method is assisted by a new ki_cookie field in struct iocb to store
the polling cookie.

Reviewed-by: Hannes Reinecke <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Documentation/filesystems/vfs.txt
include/linux/fs.h