public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Qu Wenruo <quwenruo.btrfs@gmx.com>
To: Josef Bacik <josef@toxicpanda.com>,
	linux-btrfs@vger.kernel.org, kernel-team@fb.com,
	David Sterba <dsterba@suse.cz>
Subject: Re: [PATCH 0/3][v2] clean up how we mark block groups read only
Date: Wed, 29 Jan 2020 14:05:33 +0800	[thread overview]
Message-ID: <cda6acc2-b91e-c6f6-757e-92b5628cec29@gmx.com> (raw)
In-Reply-To: <20200117140739.42560-1-josef@toxicpanda.com>


[-- Attachment #1.1: Type: text/plain, Size: 1446 bytes --]

Hi David,

This is also an important patchset, mostly to solve the false ENOSPC
from btrfs_inc_block_group_ro() calls.
One obvious example is btrfs/182 test case.

Would you mind to merge it for misc-next?

Thanks,
Qu

On 2020/1/17 下午10:07, Josef Bacik wrote:
> v1->v2:
> - Rebased onto misc-next.
> - Fixed a bug where we weren't adjusting space_info->bytes_readonly in the force
>   case.
> - Dropped the RFC, these are pretty important fixes.
> 
> -------------- Original email ----------------------
> Qu has been looking into ENOSPC during relocation and noticed some weirdness
> with inc_block_group_ro.  The problem is this code hasn't changed to keep up
> with the rest of the reservation system.  It still assumes that the amount of
> space used will always be less than the total space for the space info, which
> hasn't been true for years since I introduced overcommitting.  This logic is
> correct for DATA, but not for METADATA or SYSTEM.
> 
> The first few patches are just cleanups, and can probably be taken as is.  The
> final patch is the real meat of the problem to address Qu's issues.  This is an
> RFC because I'm elbow deep in another problem and haven't tested this beyond
> compile testing, but I think it'll work.  Once I've gotten a chance to test it
> and Qu has tested it I'll update the list if it's good to go as is, or send a V2
> with any changes.  Thanks,
> 
> Josef
> 


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

  parent reply	other threads:[~2020-01-29  6:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-17 14:07 [PATCH 0/3][v2] clean up how we mark block groups read only Josef Bacik
2020-01-17 14:07 ` [PATCH 1/3] btrfs: check rw_devices, not num_devices for restriping Josef Bacik
2020-01-17 14:07 ` [PATCH 2/3] btrfs: fix force usage in inc_block_group_ro Josef Bacik
2020-01-17 14:07 ` [PATCH 3/3] btrfs: use btrfs_can_overcommit " Josef Bacik
2020-01-29  6:05 ` Qu Wenruo [this message]
2020-01-29 13:45   ` [PATCH 0/3][v2] clean up how we mark block groups read only David Sterba

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=cda6acc2-b91e-c6f6-757e-92b5628cec29@gmx.com \
    --to=quwenruo.btrfs@gmx.com \
    --cc=dsterba@suse.cz \
    --cc=josef@toxicpanda.com \
    --cc=kernel-team@fb.com \
    --cc=linux-btrfs@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