mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
block: add a struct io_comp_batch argument to fops->iopoll()
struct io_comp_batch contains a list head and a completion handler, which will allow completions to more effciently completed batches of IO. For now, no functional changes in this patch, we just define the io_comp_batch structure and add the argument to the file_operations iopoll handler. Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
013a7f9543
commit
5a72e899ce
16 changed files with 39 additions and 25 deletions
|
@ -424,7 +424,7 @@ int swap_readpage(struct page *page, bool synchronous)
|
|||
if (!READ_ONCE(bio->bi_private))
|
||||
break;
|
||||
|
||||
if (!bio_poll(bio, 0))
|
||||
if (!bio_poll(bio, NULL, 0))
|
||||
blk_io_schedule();
|
||||
}
|
||||
__set_current_state(TASK_RUNNING);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue