All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Sterba <dsterba@suse.cz>
To: lkp@lists.01.org
Subject: Re: [btrfs] 6d01952397:
Date: Mon, 05 Jun 2017 14:03:16 +0200	[thread overview]
Message-ID: <20170605120316.GS12135@suse.cz> (raw)
In-Reply-To: <20170605110432.GA124438@inn.lkp.intel.com>

[-- Attachment #1: Type: text/plain, Size: 1554 bytes --]

Adding linux-btrfs to CC.

On Mon, Jun 05, 2017 at 07:04:32PM +0800, kernel test robot wrote:
> FYI, we noticed the following commit:
> 
> commit: 6d01952397a3c0b2a5f2d60148ee70a7f0888d40 ("btrfs: scrub: inline helper scrub_setup_wr_ctx")
> https://github.com/kdave/btrfs-devel.git misc-next
> 
> in testcase: xfstests
> with following parameters:
> 
> 	disk: 6HDD
> 	fs: btrfs
> 	test: btrfs-mid2
> 
> test-description: xfstests is a regression test suite for xfs and other files ystems.
> test-url: git://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git

Thanks for the report. It's a harmless warning, so you can disregard it
until it'll get fixed.

In more detail:

* btrfs/100 attempts to do dev-replace and inject an EIO
* there are expected errors reported in dmesg
* there's also a stacktrace, caused by

fs/btrfs/dev-replace.c:413

409         ret = btrfs_dev_replace_finishing(fs_info, ret);
410         if (ret == -EINPROGRESS) {
411                 ret = BTRFS_IOCTL_DEV_REPLACE_RESULT_SCRUB_INPROGRESS;
412         } else {
413                 WARN_ON(ret);
^^^
414         }

ie. an unexpected return code after dev-replace, but I don't see much
point reporting it with the stacktrace. The way the error codes get
reported back to userspace does not seem to be clean, as there are
-ERRNO codes returned and also positive values from
BTRFS_IOCTL_DEV_REPLACE_RESULT_* . I don't have a quick fix, this
touches the kernel/userspace interface, we'll have to be careful about
the backward compatibility.

      reply	other threads:[~2017-06-05 12:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-05 11:04 [btrfs] 6d01952397: kernel test robot
2017-06-05 12:03 ` David Sterba [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=20170605120316.GS12135@suse.cz \
    --to=dsterba@suse.cz \
    --cc=lkp@lists.01.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.