History

block: use bio_queue_enter instead of blk_queue_enter in bio_poll

We want to have a valid live gendisk to call ->poll and not just a request_queue, so call the right helper.

Christoph Hellwig committed 4 years ago

Commit ebd076b1 parent 98d40e71 file · +1 −1Browse files

Showing the changes to block (1 of 1 file). Show all

Unified · Split

block/blk-core.c+1−1
@@ -943,7 +943,7 @@ int bio_poll(struct bio *bio, struct io_comp_batch *iob, unsigned int flags) · 942 unmodified lines
943943
944944 blk_flush_plug(current->plug, false);
945945
946− if (blk_queue_enter(q, BLK_MQ_REQ_NOWAIT))
946+ if (bio_queue_enter(bio))
947947 return 0;
948948 if (queue_is_mq(q)) {
949949 ret = blk_mq_poll(q, cookie, iob, flags);

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