From: Jens Axboe <axboe@kernel.dk>
To: Zhengyuan Liu <liuzhengyuan@kylinos.cn>
Cc: linux-block@vger.kernel.org
Subject: Re: [PATCH 1/2] io_uring: make req from defer and link list not touch async list
Date: Tue, 16 Jul 2019 08:08:37 -0600 [thread overview]
Message-ID: <a85d49b5-ef2c-4b29-0cbf-845648d86cf6@kernel.dk> (raw)
In-Reply-To: <20190713035826.2987-1-liuzhengyuan@kylinos.cn>
On 7/12/19 9:58 PM, Zhengyuan Liu wrote:
> We would queue a work for each req in defer and link list without
> increasing async->cnt, so we shouldn't decrease it while exiting
> from workqueue as well as shouldn't process the req in async list.
Took a closer look at this one. First comment, can you rewrite
the subject line? I honestly don't quite know what that is
trying to say.
Apart from that:
> diff --git a/fs/io_uring.c b/fs/io_uring.c
> index 7e932c572f26..3e48fd7cd08f 100644
> --- a/fs/io_uring.c
> +++ b/fs/io_uring.c
> @@ -333,7 +333,8 @@ struct io_kiocb {
> #define REQ_F_IO_DRAIN 16 /* drain existing IO first */
> #define REQ_F_IO_DRAINED 32 /* drain done */
> #define REQ_F_LINK 64 /* linked sqes */
> -#define REQ_F_FAIL_LINK 128 /* fail rest of links */
> +#define REQ_F_LINKED 128 /* linked sqes done */
> +#define REQ_F_FAIL_LINK 256 /* fail rest of links */
_LINKED is poorly chosen, hard to know what the difference between
_LINK and _LINKED is here, they seem identical. Please rename it to
_LINK_DONE or something like that.
Thanks!
--
Jens Axboe
prev parent reply other threads:[~2019-07-16 14:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-13 3:58 [PATCH 1/2] io_uring: make req from defer and link list not touch async list Zhengyuan Liu
2019-07-13 3:58 ` [PATCH 2/2] io_uring: fix the judging condition in io_sequence_defer Zhengyuan Liu
2019-07-13 21:43 ` Jens Axboe
[not found] ` <5d2be620.1c69fb81.fff62.8eeeSMTPIN_ADDED_BROKEN@mx.google.com>
2019-07-16 14:10 ` Jens Axboe
2019-07-16 14:08 ` Jens Axboe [this message]
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=a85d49b5-ef2c-4b29-0cbf-845648d86cf6@kernel.dk \
--to=axboe@kernel.dk \
--cc=linux-block@vger.kernel.org \
--cc=liuzhengyuan@kylinos.cn \
/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;
as well as URLs for NNTP newsgroup(s).