From: Mikulas Patocka <[email protected]>
To: JeffleXu <[email protected]>,
Mike Snitzer <[email protected]>,
Heinz Mauelshagen <[email protected]>,
[email protected], [email protected],
[email protected], [email protected],
[email protected], [email protected], [email protected]
Cc: Mikulas Patocka <[email protected]>
Subject: [PATCH 2/4] block: dont clear REQ_HIPRI for bio-based drivers
Date: Tue, 02 Mar 2021 20:05:15 +0100 [thread overview]
Message-ID: <[email protected]> (raw)
[-- Attachment #1: block-allow-bio-hipri.patch --]
[-- Type: text/plain, Size: 759 bytes --]
Don't clear REQ_HIPRI for bio-based drivers. Device mapper will need to
see this flag in order to support polling.
Signed-off-by: Mikulas Patocka <[email protected]>
---
block/blk-core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: linux-2.6/block/blk-core.c
===================================================================
--- linux-2.6.orig/block/blk-core.c 2021-03-02 10:43:28.000000000 +0100
+++ linux-2.6/block/blk-core.c 2021-03-02 10:53:50.000000000 +0100
@@ -836,7 +836,7 @@ static noinline_for_stack bool submit_bi
}
}
- if (!test_bit(QUEUE_FLAG_POLL, &q->queue_flags))
+ if (!test_bit(QUEUE_FLAG_POLL, &q->queue_flags) && !bdev->bd_disk->fops->submit_bio)
bio->bi_opf &= ~REQ_HIPRI;
switch (bio_op(bio)) {
next reply other threads:[~2021-03-03 6:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-02 19:05 Mikulas Patocka [this message]
2021-03-03 2:21 ` [dm-devel] [PATCH 2/4] block: dont clear REQ_HIPRI for bio-based drivers JeffleXu
2021-03-03 10:05 ` Mikulas Patocka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox