From: kernel test robot <[email protected]>
To: Pavel Begunkov <[email protected]>, [email protected]
Cc: [email protected], Jens Axboe <[email protected]>,
[email protected], Conrad Meyer <[email protected]>,
[email protected], [email protected],
Christoph Hellwig <[email protected]>
Subject: Re: [PATCH v3 7/8] block: add nowait flag for __blkdev_issue_zero_pages
Date: Fri, 6 Sep 2024 11:23:09 +0800 [thread overview]
Message-ID: <[email protected]> (raw)
In-Reply-To: <292fa1c611adb064efe16ab741aad65c2128ada8.1725459175.git.asml.silence@gmail.com>
Hi Pavel,
kernel test robot noticed the following build warnings:
[auto build test WARNING on axboe-block/for-next]
[also build test WARNING on akpm-mm/mm-everything linus/master v6.11-rc6 next-20240905]
[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#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Pavel-Begunkov/io_uring-cmd-expose-iowq-to-cmds/20240904-222012
base: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git for-next
patch link: https://lore.kernel.org/r/292fa1c611adb064efe16ab741aad65c2128ada8.1725459175.git.asml.silence%40gmail.com
patch subject: [PATCH v3 7/8] block: add nowait flag for __blkdev_issue_zero_pages
config: i386-randconfig-141-20240906 (https://download.01.org/0day-ci/archive/20240906/[email protected]/config)
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240906/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All warnings (new ones prefixed by >>):
>> block/blk-lib.c:200:12: warning: variable 'opf' set but not used [-Wunused-but-set-variable]
200 | blk_opf_t opf = REQ_OP_WRITE;
| ^
1 warning generated.
vim +/opf +200 block/blk-lib.c
195
196 int blkdev_issue_zero_pages_bio(struct block_device *bdev,
197 sector_t sector, sector_t nr_sects, gfp_t gfp_mask,
198 struct bio **biop, unsigned int flags)
199 {
> 200 blk_opf_t opf = REQ_OP_WRITE;
201
202 if (flags & BLKDEV_ZERO_PAGES_NOWAIT) {
203 sector_t max_bio_sectors = BIO_MAX_VECS << PAGE_SECTORS_SHIFT;
204
205 if (nr_sects > max_bio_sectors)
206 return -EAGAIN;
207 opf |= REQ_NOWAIT;
208 }
209
210 while (nr_sects) {
211 unsigned int nr_vecs = __blkdev_sectors_to_bio_pages(nr_sects);
212 struct bio *bio;
213
214 bio = bio_alloc(bdev, nr_vecs, REQ_OP_WRITE, gfp_mask);
215 if (!bio)
216 return -ENOMEM;
217 bio->bi_iter.bi_sector = sector;
218
219 if ((flags & BLKDEV_ZERO_KILLABLE) &&
220 fatal_signal_pending(current))
221 return -EINTR;
222
223 do {
224 unsigned int len, added;
225
226 len = min_t(sector_t,
227 PAGE_SIZE, nr_sects << SECTOR_SHIFT);
228 added = bio_add_page(bio, ZERO_PAGE(0), len, 0);
229 if (added < len)
230 break;
231 nr_sects -= added >> SECTOR_SHIFT;
232 sector += added >> SECTOR_SHIFT;
233 } while (nr_sects);
234
235 *biop = bio_chain_and_submit(*biop, bio);
236 cond_resched();
237 }
238
239 return 0;
240 }
241
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2024-09-06 3:24 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-04 14:17 [PATCH v3 0/8] implement async block discards and other ops via io_uring Pavel Begunkov
2024-09-04 14:18 ` [PATCH v3 1/8] io_uring/cmd: expose iowq to cmds Pavel Begunkov
2024-09-04 14:18 ` [PATCH v3 2/8] io_uring/cmd: give inline space in request " Pavel Begunkov
2024-09-04 14:18 ` [PATCH v3 3/8] filemap: introduce filemap_invalidate_pages Pavel Begunkov
2024-09-04 14:18 ` [PATCH v3 4/8] block: introduce blk_validate_byte_range() Pavel Begunkov
2024-09-04 14:18 ` [PATCH v3 5/8] block: implement async discard as io_uring cmd Pavel Begunkov
2024-09-04 14:18 ` [PATCH v3 6/8] block: implement async write zeroes command Pavel Begunkov
2024-09-04 14:18 ` [PATCH v3 7/8] block: add nowait flag for __blkdev_issue_zero_pages Pavel Begunkov
2024-09-06 3:23 ` kernel test robot [this message]
2024-09-06 13:41 ` Jens Axboe
2024-09-06 13:46 ` Pavel Begunkov
2024-09-04 14:18 ` [PATCH v3 8/8] block: implement async write zero pages command Pavel Begunkov
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] \
/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