From: kbuild test robot <lkp@intel.com>
To: Jaegeuk Kim <jaegeuk@kernel.org>
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org,
linux-fsdevel@vger.kernel.org,
linux-f2fs-devel@lists.sourceforge.net,
Jaegeuk Kim <jaegeuk@kernel.org>
Subject: Re: [PATCH] f2fs: avoid deadlock in f2fs_shrink_extent_tree
Date: Tue, 1 Dec 2015 10:16:26 +0800 [thread overview]
Message-ID: <201512011021.99ok5P7F%fengguang.wu@intel.com> (raw)
In-Reply-To: <1448931215-51572-1-git-send-email-jaegeuk@kernel.org>
[-- Attachment #1: Type: text/plain, Size: 4415 bytes --]
Hi Jaegeuk,
[auto build test WARNING on: f2fs/dev]
[also build test WARNING on: v4.4-rc3 next-20151127]
url: https://github.com/0day-ci/linux/commits/Jaegeuk-Kim/f2fs-avoid-deadlock-in-f2fs_shrink_extent_tree/20151201-085538
base: https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs dev
config: x86_64-randconfig-s2-12010958 (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64
All warnings (new ones prefixed by >>):
In file included from include/linux/linkage.h:4:0,
from include/linux/fs.h:4,
from fs/f2fs/extent_cache.c:14:
fs/f2fs/extent_cache.c: In function 'f2fs_shrink_extent_tree':
fs/f2fs/extent_cache.c:618:27: warning: passing argument 1 of 'down_write_trylock' from incompatible pointer type [-Wincompatible-pointer-types]
if (down_write_trylock(&et->lock)) {
^
include/linux/compiler.h:147:28: note: in definition of macro '__trace_if'
if (__builtin_constant_p((cond)) ? !!(cond) : \
^
>> fs/f2fs/extent_cache.c:618:4: note: in expansion of macro 'if'
if (down_write_trylock(&et->lock)) {
^
In file included from include/linux/fs.h:20:0,
from fs/f2fs/extent_cache.c:14:
include/linux/rwsem.h:123:12: note: expected 'struct rw_semaphore *' but argument is of type 'rwlock_t * {aka struct <anonymous> *}'
extern int down_write_trylock(struct rw_semaphore *sem);
^
In file included from include/linux/linkage.h:4:0,
from include/linux/fs.h:4,
from fs/f2fs/extent_cache.c:14:
fs/f2fs/extent_cache.c:618:27: warning: passing argument 1 of 'down_write_trylock' from incompatible pointer type [-Wincompatible-pointer-types]
if (down_write_trylock(&et->lock)) {
^
include/linux/compiler.h:147:40: note: in definition of macro '__trace_if'
if (__builtin_constant_p((cond)) ? !!(cond) : \
^
>> fs/f2fs/extent_cache.c:618:4: note: in expansion of macro 'if'
if (down_write_trylock(&et->lock)) {
^
In file included from include/linux/fs.h:20:0,
from fs/f2fs/extent_cache.c:14:
include/linux/rwsem.h:123:12: note: expected 'struct rw_semaphore *' but argument is of type 'rwlock_t * {aka struct <anonymous> *}'
extern int down_write_trylock(struct rw_semaphore *sem);
^
In file included from include/linux/linkage.h:4:0,
from include/linux/fs.h:4,
from fs/f2fs/extent_cache.c:14:
fs/f2fs/extent_cache.c:618:27: warning: passing argument 1 of 'down_write_trylock' from incompatible pointer type [-Wincompatible-pointer-types]
if (down_write_trylock(&et->lock)) {
^
include/linux/compiler.h:158:16: note: in definition of macro '__trace_if'
______r = !!(cond); \
^
>> fs/f2fs/extent_cache.c:618:4: note: in expansion of macro 'if'
if (down_write_trylock(&et->lock)) {
^
In file included from include/linux/fs.h:20:0,
from fs/f2fs/extent_cache.c:14:
include/linux/rwsem.h:123:12: note: expected 'struct rw_semaphore *' but argument is of type 'rwlock_t * {aka struct <anonymous> *}'
extern int down_write_trylock(struct rw_semaphore *sem);
^
vim +/if +618 fs/f2fs/extent_cache.c
602 }
603 spin_unlock(&sbi->extent_lock);
604
605 /*
606 * reset ino for searching victims from beginning of global extent tree.
607 */
608 ino = F2FS_ROOT_INO(sbi);
609
610 while ((found = radix_tree_gang_lookup(root,
611 (void **)treevec, ino, EXT_TREE_VEC_SIZE))) {
612 unsigned i;
613
614 ino = treevec[found - 1]->ino + 1;
615 for (i = 0; i < found; i++) {
616 struct extent_tree *et = treevec[i];
617
> 618 if (down_write_trylock(&et->lock)) {
619 node_cnt += __free_extent_tree(sbi, et, false);
620 write_unlock(&et->lock);
621 }
622
623 if (node_cnt + tree_cnt >= nr_shrink)
624 goto unlock_out;
625 }
626 }
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 22392 bytes --]
prev parent reply other threads:[~2015-12-01 2:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-01 0:53 Jaegeuk Kim
2015-12-01 1:30 ` kbuild test robot
2015-12-01 1:46 ` [PATCH v2] " Jaegeuk Kim
2015-12-01 14:44 ` [f2fs-dev] " Chao Yu
2015-12-01 2:16 ` kbuild test robot [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=201512011021.99ok5P7F%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=jaegeuk@kernel.org \
--cc=kbuild-all@01.org \
--cc=linux-f2fs-devel@lists.sourceforge.net \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/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®