Skip to contentSkip to conversation

md fixes for 4.3

GIT PULL Neil Brown 3 participants 4 messages Oct 4, 2015 – Jun 13, 2016 MD RAID

lore
Share & tools
lore

Neil Brown

author
#0 lore raw

Hi Linus,
a few md bug fixes.
Thanks,
NeilBrown

The following changes since commit bcee19f424a0d8c26ecf2607b73c690802658b29:

Merge branch 'for-4.3-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup (2015-09-21 18:26:54 -0700)

are available in the git repository at:

git://neil.brown.name/md tags/md/4.3-fixes

for you to fetch changes up to da6fb7a9e5bd6f04f7e15070f630bdf1ea502841:

md/bitmap: don't pass -1 to bitmap_storage_alloc. (2015-10-02 17:24:13 +1000)

----------------------------------------------------------------
Assorted fixes for md in 4.3-rc

Two tagged for -stable
One is really a cleanup to match and improve kmemcache interface.

----------------------------------------------------------------
Jes Sorensen (1):
md/raid1: Avoid raid1 resync getting stuck

Julia Lawall (1):
md: drop null test before destroy functions

NeilBrown (4):
md: wait for pending superblock updates before switching to read-only md/raid5: don't index beyond end of array in need_this_block(). md/raid0: apply base queue limits *before* disk_stack_limits md/bitmap: don't pass -1 to bitmap_storage_alloc.

Shaohua Li (2):
raid5: update analysis state for failed stripe
md: clear CHANGE_PENDING in readonly array

 drivers/md/bitmap.c    |  3 ++-
 drivers/md/md.c        |  5 +++++
 drivers/md/multipath.c |  3 +--
 drivers/md/raid0.c     | 12 ++++++------
 drivers/md/raid1.c     | 11 ++++-------
 drivers/md/raid10.c    |  9 +++------
 drivers/md/raid5.c     | 11 +++++++----
 7 files changed, 28 insertions(+), 26 deletions(-)
Tested-by Xiao Ni
#1 lore raw

Hello Neil,Jes,

Question about the patch
" md/raid1: Avoid raid1 resync getting stuck"

Is this patch relevant for kernel 3.18? In Linus's tree I don't see this patch being tagged for stable[1].

Thanks,
Alex.

[1]
commit e8ff8bf09ff49733534ff3cee91bde030186055f

Author: Jes Sorensen <[email protected]>
Date:   Wed Sep 16 10:20:05 2015 -0400

md/raid1: Avoid raid1 resync getting stuck

close_sync() needs to set conf->next_resync to a large, but safe value below MaxSector and use it to determine whether or not to set start_next_window in wait_barrier()

Solution suggested by Neil Brown.

Quoted 49 lines · Neil Brown

Hi Linus,
a few md bug fixes.
Thanks,
NeilBrown

The following changes since commit bcee19f424a0d8c26ecf2607b73c690802658b29:

Merge branch 'for-4.3-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup (2015-09-21 18:26:54 -0700)

are available in the git repository at:

git://neil.brown.name/md tags/md/4.3-fixes

for you to fetch changes up to da6fb7a9e5bd6f04f7e15070f630bdf1ea502841:

md/bitmap: don't pass -1 to bitmap_storage_alloc. (2015-10-02 17:24:13 +1000)

----------------------------------------------------------------
Assorted fixes for md in 4.3-rc

Two tagged for -stable
One is really a cleanup to match and improve kmemcache interface.

----------------------------------------------------------------
Jes Sorensen (1):
md/raid1: Avoid raid1 resync getting stuck

Julia Lawall (1):
md: drop null test before destroy functions

NeilBrown (4):
md: wait for pending superblock updates before switching to read-only md/raid5: don't index beyond end of array in need_this_block(). md/raid0: apply base queue limits *before* disk_stack_limits md/bitmap: don't pass -1 to bitmap_storage_alloc.

Shaohua Li (2):
raid5: update analysis state for failed stripe
md: clear CHANGE_PENDING in readonly array

 drivers/md/bitmap.c    |  3 ++-
 drivers/md/md.c        |  5 +++++
 drivers/md/multipath.c |  3 +--
 drivers/md/raid0.c     | 12 ++++++------
 drivers/md/raid1.c     | 11 ++++-------
 drivers/md/raid10.c    |  9 +++------
 drivers/md/raid5.c     | 11 +++++++----
 7 files changed, 28 insertions(+), 26 deletions(-)
#2 lore raw
Quoted 7 lines · Alexander Lyakas

Hello Neil,Jes,

Question about the patch
" md/raid1: Avoid raid1 resync getting stuck"

Is this patch relevant for kernel 3.18? In Linus's tree I don't see this patch being tagged for stable[1].

Hi Alex,

I am not 200% sure as it's been a long time. Looking at it, I think it falls into the category of has been around forever bugs and the patch should be relevant for 3.18 too.

Cheers,
Jes

Quoted 75 lines

[1]
commit e8ff8bf09ff49733534ff3cee91bde030186055f

Author: Jes Sorensen <[email protected]>
Date:   Wed Sep 16 10:20:05 2015 -0400

md/raid1: Avoid raid1 resync getting stuck

close_sync() needs to set conf->next_resync to a large, but safe value below MaxSector and use it to determine whether or not to set start_next_window in wait_barrier()

Solution suggested by Neil Brown.

Quoted 41 lines · Neil Brown

Hi Linus,
a few md bug fixes.
Thanks,
NeilBrown

The following changes since commit bcee19f424a0d8c26ecf2607b73c690802658b29:

Merge branch 'for-4.3-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup (2015-09-21 18:26:54 -0700)

are available in the git repository at:

git://neil.brown.name/md tags/md/4.3-fixes

for you to fetch changes up to da6fb7a9e5bd6f04f7e15070f630bdf1ea502841:

md/bitmap: don't pass -1 to bitmap_storage_alloc. (2015-10-02 17:24:13 +1000)

----------------------------------------------------------------
Assorted fixes for md in 4.3-rc

Two tagged for -stable
One is really a cleanup to match and improve kmemcache interface.

----------------------------------------------------------------
Jes Sorensen (1):
md/raid1: Avoid raid1 resync getting stuck

Julia Lawall (1):
md: drop null test before destroy functions

NeilBrown (4):
md: wait for pending superblock updates before switching to read-only md/raid5: don't index beyond end of array in need_this_block(). md/raid0: apply base queue limits *before* disk_stack_limits md/bitmap: don't pass -1 to bitmap_storage_alloc.

Shaohua Li (2):
raid5: update analysis state for failed stripe
md: clear CHANGE_PENDING in readonly array

Quoted 8 lines
 drivers/md/bitmap.c    |  3 ++-
 drivers/md/md.c        |  5 +++++
 drivers/md/multipath.c |  3 +--
 drivers/md/raid0.c     | 12 ++++++------
 drivers/md/raid1.c     | 11 ++++-------
 drivers/md/raid10.c    |  9 +++------
 drivers/md/raid5.c     | 11 +++++++----
 7 files changed, 28 insertions(+), 26 deletions(-)

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw

Hi Jes,

Thanks for your response. Since you mention that Nate from your team bisected it to commit 79ef3a8aa1cb1523cc231c9a90a278333c21f761, which is the raid1 barrier rework, this has not really been around forever. For example, kernel 3.8 doesn't have this code.

Anyways, Neil mentions that two patches are tagged for stable, but not sure which ones and which stable kernels he means.

Thanks,
Alex.

Quoted 93 lines · Jes Sorensen
Quoted 7 lines · Alexander Lyakas

Hello Neil,Jes,

Question about the patch
" md/raid1: Avoid raid1 resync getting stuck"

Is this patch relevant for kernel 3.18? In Linus's tree I don't see this patch being tagged for stable[1].

Hi Alex,

I am not 200% sure as it's been a long time. Looking at it, I think it falls into the category of has been around forever bugs and the patch should be relevant for 3.18 too.

Cheers,
Jes

Quoted 75 lines

[1]
commit e8ff8bf09ff49733534ff3cee91bde030186055f

Author: Jes Sorensen <[email protected]>
Date:   Wed Sep 16 10:20:05 2015 -0400

md/raid1: Avoid raid1 resync getting stuck

close_sync() needs to set conf->next_resync to a large, but safe value below MaxSector and use it to determine whether or not to set start_next_window in wait_barrier()

Solution suggested by Neil Brown.

Quoted 41 lines · Neil Brown

Hi Linus,
a few md bug fixes.
Thanks,
NeilBrown

The following changes since commit bcee19f424a0d8c26ecf2607b73c690802658b29:

Merge branch 'for-4.3-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup (2015-09-21 18:26:54 -0700)

are available in the git repository at:

git://neil.brown.name/md tags/md/4.3-fixes

for you to fetch changes up to da6fb7a9e5bd6f04f7e15070f630bdf1ea502841:

md/bitmap: don't pass -1 to bitmap_storage_alloc. (2015-10-02 17:24:13 +1000)

----------------------------------------------------------------
Assorted fixes for md in 4.3-rc

Two tagged for -stable
One is really a cleanup to match and improve kmemcache interface.

----------------------------------------------------------------
Jes Sorensen (1):
md/raid1: Avoid raid1 resync getting stuck

Julia Lawall (1):
md: drop null test before destroy functions

NeilBrown (4):
md: wait for pending superblock updates before switching to read-only md/raid5: don't index beyond end of array in need_this_block(). md/raid0: apply base queue limits *before* disk_stack_limits md/bitmap: don't pass -1 to bitmap_storage_alloc.

Shaohua Li (2):
raid5: update analysis state for failed stripe
md: clear CHANGE_PENDING in readonly array

Quoted 8 lines
 drivers/md/bitmap.c    |  3 ++-
 drivers/md/md.c        |  5 +++++
 drivers/md/multipath.c |  3 +--
 drivers/md/raid0.c     | 12 ++++++------
 drivers/md/raid1.c     | 11 ++++-------
 drivers/md/raid10.c    |  9 +++------
 drivers/md/raid5.c     | 11 +++++++----
 7 files changed, 28 insertions(+), 26 deletions(-)

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html