[PATCH 09/18] io_uring: use fget/fput_many() for file references

2019-02-07 Thread Jens Axboe
Add a separate io_submit_state structure, to cache some of the things we need for IO submission. One such example is file reference batching. io_submit_state. We get as many references as the number of sqes we are submitting, and drop unused ones if we end up switching files. The assumption here i

[PATCH 09/18] io_uring: use fget/fput_many() for file references

2019-02-01 Thread Jens Axboe
Add a separate io_submit_state structure, to cache some of the things we need for IO submission. One such example is file reference batching. io_submit_state. We get as many references as the number of sqes we are submitting, and drop unused ones if we end up switching files. The assumption here i

[PATCH 09/18] io_uring: use fget/fput_many() for file references

2019-01-30 Thread Jens Axboe
Add a separate io_submit_state structure, to cache some of the things we need for IO submission. One such example is file reference batching. io_submit_state. We get as many references as the number of sqes we are submitting, and drop unused ones if we end up switching files. The assumption here i

Re: [PATCH 09/18] io_uring: use fget/fput_many() for file references

2019-01-30 Thread Jens Axboe
On 1/29/19 4:44 PM, Jens Axboe wrote: > On 1/29/19 4:31 PM, Jann Horn wrote: >> On Tue, Jan 29, 2019 at 8:27 PM Jens Axboe wrote: >>> Add a separate io_submit_state structure, to cache some of the things >>> we need for IO submission. >>> >>> One such example is file reference batching. io_submit_

Re: [PATCH 09/18] io_uring: use fget/fput_many() for file references

2019-01-29 Thread Jens Axboe
On 1/29/19 4:31 PM, Jann Horn wrote: > On Tue, Jan 29, 2019 at 8:27 PM Jens Axboe wrote: >> Add a separate io_submit_state structure, to cache some of the things >> we need for IO submission. >> >> One such example is file reference batching. io_submit_state. We get as >> many references as the nu

Re: [PATCH 09/18] io_uring: use fget/fput_many() for file references

2019-01-29 Thread Jann Horn
On Tue, Jan 29, 2019 at 8:27 PM Jens Axboe wrote: > Add a separate io_submit_state structure, to cache some of the things > we need for IO submission. > > One such example is file reference batching. io_submit_state. We get as > many references as the number of sqes we are submitting, and drop > u

[PATCH 09/18] io_uring: use fget/fput_many() for file references

2019-01-29 Thread Jens Axboe
Add a separate io_submit_state structure, to cache some of the things we need for IO submission. One such example is file reference batching. io_submit_state. We get as many references as the number of sqes we are submitting, and drop unused ones if we end up switching files. The assumption here i

Re: [PATCH 09/18] io_uring: use fget/fput_many() for file references

2019-01-28 Thread Jens Axboe
On 1/28/19 2:56 PM, Jann Horn wrote: > On Mon, Jan 28, 2019 at 10:36 PM Jens Axboe wrote: >> Add a separate io_submit_state structure, to cache some of the things >> we need for IO submission. >> >> One such example is file reference batching. io_submit_state. We get as >> many references as the n

Re: [PATCH 09/18] io_uring: use fget/fput_many() for file references

2019-01-28 Thread Jann Horn
On Mon, Jan 28, 2019 at 10:36 PM Jens Axboe wrote: > Add a separate io_submit_state structure, to cache some of the things > we need for IO submission. > > One such example is file reference batching. io_submit_state. We get as > many references as the number of sqes we are submitting, and drop >

[PATCH 09/18] io_uring: use fget/fput_many() for file references

2019-01-28 Thread Jens Axboe
Add a separate io_submit_state structure, to cache some of the things we need for IO submission. One such example is file reference batching. io_submit_state. We get as many references as the number of sqes we are submitting, and drop unused ones if we end up switching files. The assumption here i

[PATCH 09/18] io_uring: use fget/fput_many() for file references

2019-01-23 Thread Jens Axboe
Add a separate io_submit_state structure, to cache some of the things we need for IO submission. One such example is file reference batching. io_submit_state. We get as many references as the number of sqes we are submitting, and drop unused ones if we end up switching files. The assumption here i