mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09: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:
@@ -532,7 +532,7 @@ struct blk_mq_ops {
|
||||
/**
|
||||
* @poll: Called to poll for completion of a specific tag.
|
||||
*/
|
||||
int (*poll)(struct blk_mq_hw_ctx *);
|
||||
int (*poll)(struct blk_mq_hw_ctx *, struct io_comp_batch *);
|
||||
|
||||
/**
|
||||
* @complete: Mark the request as complete.
|
||||
|
||||
Reference in New Issue
Block a user