From: Christoph Hellwig <hch@lst.de>
To: Kemeng Shi <shikemeng@huaweicloud.com>
Cc: axboe@kernel.dk, dwagner@suse.de, hare@suse.de,
ming.lei@redhat.com, linux-block@vger.kernel.org,
linux-kernel@vger.kernel.org, hch@lst.de, john.garry@huawei.com
Subject: Re: [PATCH 01/13] blk-mq: avoid sleep in blk_mq_alloc_request_hctx
Date: Fri, 23 Dec 2022 06:37:18 +0100 [thread overview]
Message-ID: <20221223053718.GA2676@lst.de> (raw)
In-Reply-To: <20221223125223.1687670-2-shikemeng@huaweicloud.com>
On Fri, Dec 23, 2022 at 08:52:11PM +0800, Kemeng Shi wrote:
> + if (WARN_ON_ONCE(((!flags) & (BLK_MQ_REQ_NOWAIT | BLK_MQ_REQ_RESERVED))))
This check does not make any sense. I think what you want is
if (WARN_ON_ONCE(!(flags & BLK_MQ_REQ_NOWAIT) ||
WARN_ON_ONCE(!(flags & BLK_MQ_REQ_RESERVED))))
next prev parent reply other threads:[~2022-12-23 5:37 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-23 12:52 [PATCH 00/13] A few bugfix and cleanup patches for blk-mq Kemeng Shi
2022-12-23 12:52 ` [PATCH 01/13] blk-mq: avoid sleep in blk_mq_alloc_request_hctx Kemeng Shi
2022-12-23 5:37 ` Christoph Hellwig [this message]
2022-12-23 6:38 ` Kemeng Shi
2022-12-23 12:52 ` [PATCH 02/13] blk-mq: remove stale comment for blk_mq_sched_mark_restart_hctx Kemeng Shi
2022-12-23 12:52 ` [PATCH 03/13] blk-mq: wait on correct sbitmap_queue in blk_mq_mark_tag_wait Kemeng Shi
2022-12-23 12:52 ` [PATCH 04/13] blk-mq: Fix potential io hung for shared sbitmap per tagset Kemeng Shi
2022-12-23 12:52 ` [PATCH 05/13] blk-mq: remove unnecessary list_empty check in blk_mq_try_issue_list_directly Kemeng Shi
2022-12-23 12:52 ` [PATCH 06/13] blk-mq: remove unncessary error count and flush in blk_mq_plug_issue_direct Kemeng Shi
2022-12-23 12:52 ` [PATCH 07/13] blk-mq: remove error count and unncessary flush in blk_mq_try_issue_list_directly Kemeng Shi
2022-12-23 12:52 ` [PATCH 08/13] blk-mq: simplify flush check in blk_mq_dispatch_rq_list Kemeng Shi
2022-12-23 12:52 ` [PATCH 09/13] blk-mq: remove unnecessary error count and " Kemeng Shi
2022-12-23 12:52 ` [PATCH 10/13] blk-mq: remove set of bd->last when get driver tag for next request fails Kemeng Shi
2022-12-23 12:52 ` [PATCH 11/13] blk-mq: remove unncessary from_schedule parameter in blk_mq_plug_issue_direct Kemeng Shi
2022-12-23 12:52 ` [PATCH 12/13] blk-mq: use switch/case to improve readability in blk_mq_try_issue_list_directly Kemeng Shi
2022-12-23 5:53 ` Christoph Hellwig
2022-12-23 6:57 ` Kemeng Shi
2022-12-23 12:52 ` [PATCH 13/13] blk-mq: correct stale comment of .get_budget Kemeng Shi
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=20221223053718.GA2676@lst.de \
--to=hch@lst.de \
--cc=axboe@kernel.dk \
--cc=dwagner@suse.de \
--cc=hare@suse.de \
--cc=john.garry@huawei.com \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ming.lei@redhat.com \
--cc=shikemeng@huaweicloud.com \
/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
all inboxes | Powered by JetHome®