linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Anand Jain <anand.jain@oracle.com>
To: dsterba@suse.cz, Lu Fengqi <lufq.fnst@cn.fujitsu.com>,
	linux-btrfs@vger.kernel.org
Subject: Re: [PATCH v2 2/2] btrfs: fix missing superblock update in the device delete commit transaction
Date: Wed, 25 Jul 2018 21:21:05 +0800	[thread overview]
Message-ID: <2099801d-e375-42b2-85b6-3be36dd248b5@oracle.com> (raw)
In-Reply-To: <20180724110143.GU26141@twin.jikos.cz>



On 07/24/2018 07:01 PM, David Sterba wrote:
> On Tue, Jul 24, 2018 at 05:28:03PM +0800, Lu Fengqi wrote:
>>> I can't reproduce the issue. Do you reproduce consistently? and I
>>
>> Sorry I've taken so long to reply.
>>
>> There are four virtual machines with the different storage backend here.
>> And I can reproduce this issue consistently on the virtual machines (with
>> HDD or qcow2 file in HDD), however, I can't reproduce on the virtual machine
>> (with SSD or qcow2 file in SSD). So this may depend on the disk IO speed.
>>
>>> wonder if your workspace contains the latest changes from
>>> kdave/misc-next? Because last weeks kdave/misc had some issues.
>>> Can you please give a try?
>>
>> I used the latest kdave/misc-next branch on July 21, 2018, when I send
>> the previous mail. Just as David replied to Nikolay's thread, the current
>> latest kdave/misc-next still has the same problem.
> 
> I hit that on a physical machine with a mix of HDD and SSD drives under
> fstests. The VM tests did not hit the problem.


I couldn't reproduce this no matter what I try (physical machine, HDD
SDD,vbox, etc). But theoretically I have found what is going wrong.

This patch only let the problem in the btrfs_shrink_device() to
surface and it did not create it. The problem is due to
btrfs_shrink_device() did not call the commit transaction after the
device has been added to the fs_devices::resize_devices, which before
(this patch) the btrfs_rm_dev_item() did the commit transaction for the
btrfs_shrink_device().

I am sending a patch to fix. Thanks;

Anand





> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

      reply	other threads:[~2018-07-25 14:29 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-03  9:07 [PATCH v2 1/2] btrfs: fix parent in memory total_devices after seed delete Anand Jain
2018-07-03  9:07 ` [PATCH v2 2/2] btrfs: fix missing superblock update in the device delete commit transaction Anand Jain
2018-07-05 15:46   ` David Sterba
2018-07-21  6:01   ` Lu Fengqi
2018-07-23  7:52     ` Anand Jain
2018-07-24  9:28       ` Lu Fengqi
2018-07-24 11:01         ` David Sterba
2018-07-25 13:21           ` Anand Jain [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=2099801d-e375-42b2-85b6-3be36dd248b5@oracle.com \
    --to=anand.jain@oracle.com \
    --cc=dsterba@suse.cz \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=lufq.fnst@cn.fujitsu.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;
as well as URLs for NNTP newsgroup(s).