History

blk-mq: when polling for IO, look for any completion

If we want to support async IO polling, then we have to allow finding completions that aren't just for the one we are looking for. Always pass in -1 to the mq_ops->poll() helper, and have that return how many events were found in this poll loop.

Jens Axboe committed 7 years ago

Commit 1052b8a1 parent 1db49095 files · +70 −69Browse files

Showing the changes to include/linux/blkdev.h (1 of 5 files). Show all

Unified · Split

include/linux/blkdev.h+1−1
@@ -867,7 +867,7 @@ extern void blk_execute_rq_nowait(struct request_queue *, struct gendisk *, · 866 unmodified lines
867int blk_status_to_errno(blk_status_t status);867int blk_status_to_errno(blk_status_t status);
868blk_status_t errno_to_blk_status(int errno);868blk_status_t errno_to_blk_status(int errno);
869 869
870bool blk_poll(struct request_queue *q, blk_qc_t cookie);870int blk_poll(struct request_queue *q, blk_qc_t cookie);
871 871
872static inline struct request_queue *bdev_get_queue(struct block_device *bdev)872static inline struct request_queue *bdev_get_queue(struct block_device *bdev)
873{873{

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t