From: JeffleXu <[email protected]>
To: Mike Snitzer <[email protected]>
Cc: [email protected], [email protected],
[email protected], [email protected], [email protected],
[email protected]
Subject: Re: [dm-devel] dm: add support for DM_TARGET_NOWAIT for various targets
Date: Thu, 12 Nov 2020 15:58:27 +0800 [thread overview]
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
On 11/12/20 2:05 PM, JeffleXu wrote:
>>
>> dm-table.c:dm_table_set_restrictions() has:
>>
>> if (dm_table_supports_nowait(t))
>> blk_queue_flag_set(QUEUE_FLAG_NOWAIT, q);
>> else
>> blk_queue_flag_clear(QUEUE_FLAG_NOWAIT, q);
>>
>>> This patch adds support for DM_TARGET_NOWAIT for those dm targets, the
>>> .map() algorithm of which just involves sector recalculation.
>> So you're looking to constrain which targets will properly support
>> REQ_NOWAIT, based on whether they do a simple remapping?
>
> To be honest, I'm a little confused about the semantics of REQ_NOWAIT.
> Jens may had ever
>
> explained it in block or io_uring mailing list, but I can't find the
> specific mail.
>
I find it here
https://lore.kernel.org/linux-block/[email protected]/
So if the IO is offloaded to workqueue and the current process context
will not get blocked,
then is this device capable of handling REQ_NOWAIT or not?
--
Thanks,
Jeffle
next prev parent reply other threads:[~2020-11-12 7:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <[email protected]>
[not found] ` <[email protected]>
2020-11-12 6:05 ` [dm-devel] dm: add support for DM_TARGET_NOWAIT for various targets JeffleXu
2020-11-12 7:58 ` JeffleXu [this message]
2020-11-12 16:11 ` Mike Snitzer
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 \
--in-reply-to=8e958749-3954-a041-e6a9-ec13c328e9b6@linux.alibaba.com \
[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