Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* [PATCH 0/4][v2] btrfs: commit the transaction unconditionally for ensopc
@ 2021-06-18 15:18 Josef Bacik
  2021-06-18 15:18 ` [PATCH 1/4] btrfs: rip out may_commit_transaction Josef Bacik
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Josef Bacik @ 2021-06-18 15:18 UTC (permalink / raw)
  To: linux-btrfs, kernel-team

v1->v2:
- added "btrfs: remove FLUSH_DELAYED_REFS from data enospc flushing" to deal
  with me changing the docs and to reflect that we no longer need this step in
  data enospc flushing.
- Updated the 'rip out' patch to no longer include that particular part of the
  documentation update.

--- Original email ---
Hello,

While debugging early ENOSPC issues in the Facebook fleet I hit a case where we
weren't committing the transaction because of some patch that I hadn't
backported to our kernel.

This made me think really hard about why we have may_commit_transaction, and
realized that it doesn't make sense in it's current form anymore.  By-in-large
it just exists to have bugs in it and cause us pain.  It served a purpose in the
pre-ticketing days, but now just exists to be a giant pain in the ass.

So rip it out.  Just commit the transaction.  This also allows us to drop the
logic for ->total_bytes_pinned, which Nikolay noticed a problem with earlier
this week again.  Thanks,

Josef Bacik (4):
  btrfs: rip out may_commit_transaction
  btrfs: remove FLUSH_DELAYED_REFS from data enospc flushing
  btrfs: rip the first_ticket_bytes logic from fail_all_tickets
  btrfs: rip out ->total_bytes_pinned

 fs/btrfs/block-group.c       |   3 -
 fs/btrfs/ctree.h             |   1 -
 fs/btrfs/delayed-ref.c       |  26 ------
 fs/btrfs/disk-io.c           |   3 -
 fs/btrfs/extent-tree.c       |  15 ---
 fs/btrfs/space-info.c        | 175 +++--------------------------------
 fs/btrfs/space-info.h        |  30 ------
 fs/btrfs/sysfs.c             |  13 ---
 include/trace/events/btrfs.h |   3 +-
 9 files changed, 12 insertions(+), 257 deletions(-)

-- 
2.26.3


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-06-22 11:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-18 15:18 [PATCH 0/4][v2] btrfs: commit the transaction unconditionally for ensopc Josef Bacik
2021-06-18 15:18 ` [PATCH 1/4] btrfs: rip out may_commit_transaction Josef Bacik
2021-06-18 15:18 ` [PATCH 2/4] btrfs: remove FLUSH_DELAYED_REFS from data enospc flushing Josef Bacik
2021-06-18 15:18 ` [PATCH 3/4] btrfs: rip the first_ticket_bytes logic from fail_all_tickets Josef Bacik
2021-06-18 15:18 ` [PATCH 4/4] btrfs: rip out ->total_bytes_pinned Josef Bacik
2021-06-22 11:11 ` [PATCH 0/4][v2] btrfs: commit the transaction unconditionally for ensopc David Sterba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox