[PATCH 01/18] fs: add an iopoll method to struct file_operations

2019-02-07 Thread Jens Axboe
From: Christoph Hellwig 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

[PATCH 01/18] fs: add an iopoll method to struct file_operations

2019-02-01 Thread Jens Axboe
From: Christoph Hellwig 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

[PATCH 01/18] fs: add an iopoll method to struct file_operations

2019-01-30 Thread Jens Axboe
From: Christoph Hellwig 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

[PATCH 01/18] fs: add an iopoll method to struct file_operations

2019-01-29 Thread Jens Axboe
From: Christoph Hellwig 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

[PATCH 01/18] fs: add an iopoll method to struct file_operations

2019-01-28 Thread Jens Axboe
From: Christoph Hellwig 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

Re: [PATCH 01/18] fs: add an iopoll method to struct file_operations

2019-01-28 Thread Jens Axboe
On 1/28/19 7:25 AM, Christoph Hellwig wrote: > On Wed, Jan 23, 2019 at 08:35:12AM -0700, Jens Axboe wrote: >> TODO: we can probably union ki_cookie with the existing hint and I/O >> priority fields to avoid struct kiocb growth. > > Please kill this comment. While this should be doable the semanti

Re: [PATCH 01/18] fs: add an iopoll method to struct file_operations

2019-01-28 Thread Christoph Hellwig
On Wed, Jan 23, 2019 at 08:35:12AM -0700, Jens Axboe wrote: > TODO: we can probably union ki_cookie with the existing hint and I/O > priority fields to avoid struct kiocb growth. Please kill this comment. While this should be doable the semantics would be a bit nasty, so unless we have to I'd rat

[PATCH 01/18] fs: add an iopoll method to struct file_operations

2019-01-23 Thread Jens Axboe
From: Christoph Hellwig 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