linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [GIT PULL] Btrfs bug fixes
@ 2015-06-30 22:20 fdmanana
  2015-07-01 17:24 ` Chris Mason
  0 siblings, 1 reply; 9+ messages in thread
From: fdmanana @ 2015-06-30 22:20 UTC (permalink / raw)
  To: linux-btrfs, clm; +Cc: Filipe Manana

From: Filipe Manana <fdmanana@suse.com>

Hi Chris,

Please consider the following changes (or a subset at your will in case
they are too many or too large) for the kernel 4.2 release. All these
patches have been available in the mailing list for at least 2 weeks.

They are all bug fixes and deal with races, crashes, memory corruption,
hangs and data loss on fsync. No cleanups, refactorings or other cosmetic
changes that don't affect users, except for a change that updates a
comment added in a change that was already sent to Linus (but that can
hardly introduce any regression).

I have included 2 fixes from Liu related to error handling of direct IO
writes because not only they seem important to me, I also tested and
reviewed them. My recent patch for direct IO error handling (not included
in this pull request because it's too fresh) does not depend on Liu's
fixes, it's for a different error case (when we fail to submit the bios),
and can be tested/applied with or without his fixes.

Finally I have included a fix from Shilong that has been around since
April and didn't got any attention, despite being correct, trivial and
useful.

I have added Reviewed-By and Tested-by tags to all the patches that got
such tags from people through the mailing list. Some patches are also
tagged for stable.

I have rebased them on top of your current integration-4.2 branch and
re-tested them with xfstests, LTP and some custom tests. Some of these
fixes have new test cases for xfstest submitted recently as well (but
not yet merged as of today, only reviewed).

Thanks.

The following changes since commit 5a5003df98d5a7f6834227885b7c9728f767cc27:

  btrfs: delayed-ref: double free in btrfs_add_delayed_tree_ref() (2015-06-24 12:28:03 -0700)

are available in the git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/fdmanana/linux.git integration-4.2

for you to fetch changes up to 9ac2b7cb4755cb3311bb7d1ccf0eb51d0e006fba:

  Btrfs: fix wrong check for btrfs_force_chunk_alloc() (2015-06-30 05:00:49 +0100)

----------------------------------------------------------------
Filipe Manana (7):
      Btrfs: fix a comment in inode.c:evict_inode_truncate_pages()
      Btrfs: fix race between balance and unused block group deletion
      Btrfs: use kmem_cache_free when freeing entry in inode cache
      Btrfs: fix race between caching kthread and returning inode to inode cache
      Btrfs: fix crash on close_ctree() if cleaner starts new transaction
      Btrfs: fix fsync data loss after append write
      Btrfs: fix fsync xattr loss in the fast fsync path

Liu Bo (2):
      Btrfs: fix hang when failing to submit bio of directIO
      Btrfs: fix warning of bytes_may_use

Shilong Wang (1):
      Btrfs: fix wrong check for btrfs_force_chunk_alloc()

 fs/btrfs/btrfs_inode.h |   2 ++
 fs/btrfs/ctree.h       |   1 +
 fs/btrfs/disk-io.c     |  41 ++++++++++++++++++++++++++++++++++++++++-
 fs/btrfs/extent-tree.c |   3 +++
 fs/btrfs/inode-map.c   |  17 ++++++++++++-----
 fs/btrfs/inode.c       |  24 ++++++++++++++++--------
 fs/btrfs/relocation.c  |   2 +-
 fs/btrfs/tree-log.c    | 118 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-----
 fs/btrfs/volumes.c     |  48 +++++++++++++++++++++++++++++++++++++++++++-----
 9 files changed, 231 insertions(+), 25 deletions(-)

-- 
2.1.3


^ permalink raw reply	[flat|nested] 9+ messages in thread
* [GIT PULL] Btrfs bug fixes
@ 2015-09-15  2:22 fdmanana
  2015-09-15 11:49 ` Holger Hoffstätte
  0 siblings, 1 reply; 9+ messages in thread
From: fdmanana @ 2015-09-15  2:22 UTC (permalink / raw)
  To: linux-btrfs; +Cc: clm, Filipe Manana

From: Filipe Manana <fdmanana@suse.com>

Hi Chris,

Please consider the following fixes for the 4.3 kernel release candidates.
One of them addresses a deadlock introduced in 4.3, another is for a false
enospc condition (which I introduced in a 4.2 commit) that can happen either
on empty filesystems or filesystems with files having only inlined extents
after mounting with "-o nospace_cache", a fix for read corruption of
compressed and shared (cloned, deduped) extents that has been present
possibly since the compression feature exists or since the clone/dedup
ioctls exist, and finally, from Jeff, a fix for a long standing null
pointer dereference during inode eviction that some users were running
into very often.

They are all short and simple, the read corruption one is bigger only
because it adds a big fat comment, and just like Jeff's fix, it was
tagged for backporting to stable releases too.

I included any Reviewed-by tags people added through the mailing list and
two of these fixes have corresponding test cases for fstests that were
submitted, along with the respective fixes, to the mailing list.

Thanks.

The following changes since commit 527afb4493c2892ce89fb74648e72a30b68ba120:

  Btrfs: cleanup: remove unnecessary check before btrfs_free_path is called (2015-08-31 11:46:41 -0700)

are available in the git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/fdmanana/linux.git integration-4.3

for you to fetch changes up to a30e577c96f59b1e1678ea5462432b09bf7d5cbc:

  btrfs: skip waiting on ordered range for special files (2015-09-15 02:21:08 +0100)

----------------------------------------------------------------
Filipe Manana (3):
      Btrfs: don't initialize a space info as full to prevent ENOSPC
      Btrfs: remove unnecessary locking of cleaner_mutex to avoid deadlock
      Btrfs: fix read corruption of compressed and shared extents

Jeff Mahoney (1):
      btrfs: skip waiting on ordered range for special files

 fs/btrfs/disk-io.c     |  2 --
 fs/btrfs/extent-tree.c |  5 +----
 fs/btrfs/extent_io.c   | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------
 fs/btrfs/inode.c       |  3 ++-
 fs/btrfs/super.c       |  2 --
 5 files changed, 60 insertions(+), 17 deletions(-)

-- 
2.1.3


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

end of thread, other threads:[~2015-09-15 14:07 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-30 22:20 [GIT PULL] Btrfs bug fixes fdmanana
2015-07-01 17:24 ` Chris Mason
2015-07-01 21:00   ` Ed Tomlinson
  -- strict thread matches above, loose matches on Subject: below --
2015-09-15  2:22 fdmanana
2015-09-15 11:49 ` Holger Hoffstätte
2015-09-15 12:58   ` Filipe Manana
2015-09-15 13:43     ` Holger Hoffstätte
2015-09-15 13:53       ` Josef Bacik
2015-09-15 14:07       ` Josef Bacik

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).