From: kernel test robot <lkp@intel.com>
To: Ming Lei <ming.lei@redhat.com>, Christoph Hellwig <hch@lst.de>,
Jens Axboe <axboe@kernel.dk>,
"Martin K . Petersen" <martin.petersen@oracle.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
Sagi Grimberg <sagi@grimberg.me>,
linux-block@vger.kernel.org, linux-nvme@lists.infradead.org,
linux-scsi@vger.kernel.org, Keith Busch <kbusch@kernel.org>,
Ming Lei <ming.lei@redhat.com>
Subject: Re: [PATCH V2 1/5] blk-mq: remove hctx_lock and hctx_unlock
Date: Tue, 30 Nov 2021 22:42:09 +0800 [thread overview]
Message-ID: <202111302217.rEsBycwv-lkp@intel.com> (raw)
In-Reply-To: <20211130073752.3005936-2-ming.lei@redhat.com>
Hi Ming,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on axboe-block/for-next]
[also build test WARNING on mkp-scsi/for-next v5.16-rc3 next-20211130]
[cannot apply to linux-nvme/for-next hch-configfs/for-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Ming-Lei/blk-mq-quiesce-improvement/20211130-154015
base: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git for-next
config: hexagon-randconfig-r045-20211129 (https://download.01.org/0day-ci/archive/20211130/202111302217.rEsBycwv-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 25eb7fa01d7ebbe67648ea03841cda55b4239ab2)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/4575a8b36e3a56fa87b1f77e0064fc2ec36ebb7c
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Ming-Lei/blk-mq-quiesce-improvement/20211130-154015
git checkout 4575a8b36e3a56fa87b1f77e0064fc2ec36ebb7c
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> block/blk-mq.c:2482:2: warning: '(' and '{' tokens introducing statement expression appear in different macro expansion contexts [-Wcompound-token-split-by-macro]
blk_mq_run_dispatch_ops(hctx,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
block/blk-mq.c:1079:3: note: expanded from macro 'blk_mq_run_dispatch_ops'
(dispatch_ops); \
^
block/blk-mq.c:2483:3: note: '{' token is here
{
^
block/blk-mq.c:1079:4: note: expanded from macro 'blk_mq_run_dispatch_ops'
(dispatch_ops); \
^~~~~~~~~~~~
>> block/blk-mq.c:2489:3: warning: '}' and ')' tokens terminating statement expression appear in different macro expansion contexts [-Wcompound-token-split-by-macro]
}
^
block/blk-mq.c:1079:4: note: expanded from macro 'blk_mq_run_dispatch_ops'
(dispatch_ops); \
^~~~~~~~~~~~
block/blk-mq.c:2482:2: note: ')' token is here
blk_mq_run_dispatch_ops(hctx,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
block/blk-mq.c:1079:16: note: expanded from macro 'blk_mq_run_dispatch_ops'
(dispatch_ops); \
^
>> block/blk-mq.c:2482:2: warning: '(' and '{' tokens introducing statement expression appear in different macro expansion contexts [-Wcompound-token-split-by-macro]
blk_mq_run_dispatch_ops(hctx,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
block/blk-mq.c:1086:3: note: expanded from macro 'blk_mq_run_dispatch_ops'
(dispatch_ops); \
^
block/blk-mq.c:2483:3: note: '{' token is here
{
^
block/blk-mq.c:1086:4: note: expanded from macro 'blk_mq_run_dispatch_ops'
(dispatch_ops); \
^~~~~~~~~~~~
>> block/blk-mq.c:2489:3: warning: '}' and ')' tokens terminating statement expression appear in different macro expansion contexts [-Wcompound-token-split-by-macro]
}
^
block/blk-mq.c:1086:4: note: expanded from macro 'blk_mq_run_dispatch_ops'
(dispatch_ops); \
^~~~~~~~~~~~
block/blk-mq.c:2482:2: note: ')' token is here
blk_mq_run_dispatch_ops(hctx,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
block/blk-mq.c:1086:16: note: expanded from macro 'blk_mq_run_dispatch_ops'
(dispatch_ops); \
^
4 warnings generated.
vim +2482 block/blk-mq.c
2466
2467 /**
2468 * blk_mq_try_issue_directly - Try to send a request directly to device driver.
2469 * @hctx: Pointer of the associated hardware queue.
2470 * @rq: Pointer to request to be sent.
2471 *
2472 * If the device has enough resources to accept a new request now, send the
2473 * request directly to device driver. Else, insert at hctx->dispatch queue, so
2474 * we can try send it another time in the future. Requests inserted at this
2475 * queue have higher priority.
2476 */
2477 static void blk_mq_try_issue_directly(struct blk_mq_hw_ctx *hctx,
2478 struct request *rq)
2479 {
2480 blk_status_t ret;
2481
> 2482 blk_mq_run_dispatch_ops(hctx,
2483 {
2484 ret = __blk_mq_try_issue_directly(hctx, rq, false, true);
2485 if (ret == BLK_STS_RESOURCE || ret == BLK_STS_DEV_RESOURCE)
2486 blk_mq_request_bypass_insert(rq, false, true);
2487 else if (ret != BLK_STS_OK)
2488 blk_mq_end_request(rq, ret);
> 2489 }
2490 );
2491 }
2492
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
next prev parent reply other threads:[~2021-11-30 14:42 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-30 7:37 [PATCH V2 0/5] blk-mq: quiesce improvement Ming Lei
2021-11-30 7:37 ` [PATCH V2 1/5] blk-mq: remove hctx_lock and hctx_unlock Ming Lei
2021-11-30 14:42 ` kernel test robot [this message]
2021-11-30 7:37 ` [PATCH V2 2/5] blk-mq: move srcu from blk_mq_hw_ctx to request_queue Ming Lei
2021-11-30 7:37 ` [PATCH V2 3/5] blk-mq: add helper of blk_mq_shared_quiesce_wait() Ming Lei
2021-11-30 7:37 ` [PATCH V2 4/5] nvme: quiesce namespace queue in parallel Ming Lei
2021-11-30 7:37 ` [PATCH V2 5/5] scsi: use blk-mq quiesce APIs to implement scsi_host_block Ming Lei
2022-06-07 11:21 ` [PATCH V2 4/5] nvme: quiesce namespace queue in parallel Ismael Luceno
2022-06-07 14:03 ` Ming Lei
2022-07-06 15:37 ` Ismael Luceno
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=202111302217.rEsBycwv-lkp@intel.com \
--to=lkp@intel.com \
--cc=axboe@kernel.dk \
--cc=hch@lst.de \
--cc=kbuild-all@lists.01.org \
--cc=kbusch@kernel.org \
--cc=linux-block@vger.kernel.org \
--cc=linux-nvme@lists.infradead.org \
--cc=linux-scsi@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=martin.petersen@oracle.com \
--cc=ming.lei@redhat.com \
--cc=sagi@grimberg.me \
/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