linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [116/165] ext4: dont return to userspace after freezing the fs with a mutex held
@ 2010-07-30 17:15 Greg KH
  2010-08-02 12:04 ` [Stable-review] " Stefan Bader
  0 siblings, 1 reply; 13+ messages in thread
From: Greg KH @ 2010-07-30 17:15 UTC (permalink / raw)
  To: linux-kernel, stable
  Cc: stable-review, torvalds, akpm, alan, Eric Sandeen, Theodore Tso

2.6.32-stable review patch.  If anyone has any objections, please let us know.

------------------

commit 6b0310fbf087ad6e9e3b8392adca97cd77184084 upstream (as of v2.6.34-git13)

ext4_freeze() used jbd2_journal_lock_updates() which takes
the j_barrier mutex, and then returns to userspace.  The
kernel does not like this:

================================================
[ BUG: lock held when returning to user space! ]
------------------------------------------------
lvcreate/1075 is leaving the kernel with locks still held!
1 lock held by lvcreate/1075:
 #0:  (&journal->j_barrier){+.+...}, at: [<ffffffff811c6214>]
jbd2_journal_lock_updates+0xe1/0xf0

Use vfs_check_frozen() added to ext4_journal_start_sb() and
ext4_force_commit() instead.

Addresses-Red-Hat-Bugzilla: #568503

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
---
 fs/ext4/super.c |   20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -227,6 +227,7 @@ handle_t *ext4_journal_start_sb(struct s
 	if (sb->s_flags & MS_RDONLY)
 		return ERR_PTR(-EROFS);
 
+	vfs_check_frozen(sb, SB_FREEZE_WRITE);
 	/* Special case here: if the journal has aborted behind our
 	 * backs (eg. EIO in the commit thread), then we still need to
 	 * take the FS itself readonly cleanly. */
@@ -3391,8 +3392,10 @@ int ext4_force_commit(struct super_block
 		return 0;
 
 	journal = EXT4_SB(sb)->s_journal;
-	if (journal)
+	if (journal) {
+		vfs_check_frozen(sb, SB_FREEZE_WRITE);
 		ret = ext4_journal_force_commit(journal);
+	}
 
 	return ret;
 }
@@ -3441,18 +3444,16 @@ static int ext4_freeze(struct super_bloc
 	 * the journal.
 	 */
 	error = jbd2_journal_flush(journal);
-	if (error < 0) {
-	out:
-		jbd2_journal_unlock_updates(journal);
-		return error;
-	}
+	if (error < 0)
+		goto out;
 
 	/* Journal blocked and flushed, clear needs_recovery flag. */
 	EXT4_CLEAR_INCOMPAT_FEATURE(sb, EXT4_FEATURE_INCOMPAT_RECOVER);
 	error = ext4_commit_super(sb, 1);
-	if (error)
-		goto out;
-	return 0;
+out:
+	/* we rely on s_frozen to stop further updates */
+	jbd2_journal_unlock_updates(EXT4_SB(sb)->s_journal);
+	return error;
 }
 
 /*
@@ -3469,7 +3470,6 @@ static int ext4_unfreeze(struct super_bl
 	EXT4_SET_INCOMPAT_FEATURE(sb, EXT4_FEATURE_INCOMPAT_RECOVER);
 	ext4_commit_super(sb, 1);
 	unlock_super(sb);
-	jbd2_journal_unlock_updates(EXT4_SB(sb)->s_journal);
 	return 0;
 }
 



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

* Re: [Stable-review] [116/165] ext4: dont return to userspace after freezing the fs with a mutex held
  2010-07-30 17:15 [116/165] ext4: dont return to userspace after freezing the fs with a mutex held Greg KH
@ 2010-08-02 12:04 ` Stefan Bader
  2010-08-02 17:02   ` Eric Sandeen
  0 siblings, 1 reply; 13+ messages in thread
From: Stefan Bader @ 2010-08-02 12:04 UTC (permalink / raw)
  To: Greg KH
  Cc: linux-kernel, stable, Eric Sandeen, akpm, torvalds, stable-review, alan

We have reports about this patch breaking lvm snapshhots. Eric, there is a patch
mentioned which is supposed to fix things but its not upstream, yet.
Do you know what happened to that?

-Stefan

PATCH] ext4: fix freeze deadlock under IO

Commit 6b0310fbf087ad6 caused a regression resulting in deadlocks
when freezing a filesystem which had active IO; the vfs_check_frozen
level (SB_FREEZE_WRITE) did not let the freeze-related IO syncing
through.  Duh.

Changing the test to FREEZE_TRANS should let the normal freeze
syncing get through the fs, but still block any transactions from
starting once the fs is completely frozen.

I tested this by running fsstress in the background while periodically
snapshotting the fs and running fsck on the result.  I ran into
occasional deadlocks, but different ones.  I think this is a
fine fix for the problem at hand, and the other deadlocky things
will need more investigation.

Reported-by: Phillip Susi <psusi@cfl.rr.com>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
---

diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 4e8983a..a45ced9 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -241,7 +241,7 @@ handle_t *ext4_journal_start_sb(struct super_block *sb, int
nblocks)
 	if (sb->s_flags & MS_RDONLY)
 		return ERR_PTR(-EROFS);

-	vfs_check_frozen(sb, SB_FREEZE_WRITE);
+	vfs_check_frozen(sb, SB_FREEZE_TRANS);
 	/* Special case here: if the journal has aborted behind our
 	 * backs (eg. EIO in the commit thread), then we still need to
 	 * take the FS itself readonly cleanly. */
@@ -3491,7 +3491,7 @@ int ext4_force_commit(struct super_block *sb)

 	journal = EXT4_SB(sb)->s_journal;
 	if (journal) {
-		vfs_check_frozen(sb, SB_FREEZE_WRITE);
+		vfs_check_frozen(sb, SB_FREEZE_TRANS);
 		ret = ext4_journal_force_commit(journal);
 	}



On 07/30/2010 07:15 PM, Greg KH wrote:
> 2.6.32-stable review patch.  If anyone has any objections, please let us know.
> 
> ------------------
> 
> commit 6b0310fbf087ad6e9e3b8392adca97cd77184084 upstream (as of v2.6.34-git13)
> 
> ext4_freeze() used jbd2_journal_lock_updates() which takes
> the j_barrier mutex, and then returns to userspace.  The
> kernel does not like this:
> 
> ================================================
> [ BUG: lock held when returning to user space! ]
> ------------------------------------------------
> lvcreate/1075 is leaving the kernel with locks still held!
> 1 lock held by lvcreate/1075:
>  #0:  (&journal->j_barrier){+.+...}, at: [<ffffffff811c6214>]
> jbd2_journal_lock_updates+0xe1/0xf0
> 
> Use vfs_check_frozen() added to ext4_journal_start_sb() and
> ext4_force_commit() instead.
> 
> Addresses-Red-Hat-Bugzilla: #568503
> 
> Signed-off-by: Eric Sandeen <sandeen@redhat.com>
> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
> ---
>  fs/ext4/super.c |   20 ++++++++++----------
>  1 file changed, 10 insertions(+), 10 deletions(-)
> 
> --- a/fs/ext4/super.c
> +++ b/fs/ext4/super.c
> @@ -227,6 +227,7 @@ handle_t *ext4_journal_start_sb(struct s
>  	if (sb->s_flags & MS_RDONLY)
>  		return ERR_PTR(-EROFS);
>  
> +	vfs_check_frozen(sb, SB_FREEZE_WRITE);
>  	/* Special case here: if the journal has aborted behind our
>  	 * backs (eg. EIO in the commit thread), then we still need to
>  	 * take the FS itself readonly cleanly. */
> @@ -3391,8 +3392,10 @@ int ext4_force_commit(struct super_block
>  		return 0;
>  
>  	journal = EXT4_SB(sb)->s_journal;
> -	if (journal)
> +	if (journal) {
> +		vfs_check_frozen(sb, SB_FREEZE_WRITE);
>  		ret = ext4_journal_force_commit(journal);
> +	}
>  
>  	return ret;
>  }
> @@ -3441,18 +3444,16 @@ static int ext4_freeze(struct super_bloc
>  	 * the journal.
>  	 */
>  	error = jbd2_journal_flush(journal);
> -	if (error < 0) {
> -	out:
> -		jbd2_journal_unlock_updates(journal);
> -		return error;
> -	}
> +	if (error < 0)
> +		goto out;
>  
>  	/* Journal blocked and flushed, clear needs_recovery flag. */
>  	EXT4_CLEAR_INCOMPAT_FEATURE(sb, EXT4_FEATURE_INCOMPAT_RECOVER);
>  	error = ext4_commit_super(sb, 1);
> -	if (error)
> -		goto out;
> -	return 0;
> +out:
> +	/* we rely on s_frozen to stop further updates */
> +	jbd2_journal_unlock_updates(EXT4_SB(sb)->s_journal);
> +	return error;
>  }
>  
>  /*
> @@ -3469,7 +3470,6 @@ static int ext4_unfreeze(struct super_bl
>  	EXT4_SET_INCOMPAT_FEATURE(sb, EXT4_FEATURE_INCOMPAT_RECOVER);
>  	ext4_commit_super(sb, 1);
>  	unlock_super(sb);
> -	jbd2_journal_unlock_updates(EXT4_SB(sb)->s_journal);
>  	return 0;
>  }
>  
> 
> 
> _______________________________________________
> Stable-review mailing list
> Stable-review@linux.kernel.org
> http://linux.kernel.org/mailman/listinfo/stable-review


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

* Re: [Stable-review] [116/165] ext4: dont return to userspace after freezing the fs with a mutex held
  2010-08-02 12:04 ` [Stable-review] " Stefan Bader
@ 2010-08-02 17:02   ` Eric Sandeen
  2010-08-02 18:48     ` [stable] " Greg KH
  0 siblings, 1 reply; 13+ messages in thread
From: Eric Sandeen @ 2010-08-02 17:02 UTC (permalink / raw)
  To: Stefan Bader
  Cc: Greg KH, linux-kernel, stable, akpm, torvalds, stable-review, alan

On 08/02/2010 07:04 AM, Stefan Bader wrote:
> We have reports about this patch breaking lvm snapshhots. Eric, there is a patch
> mentioned which is supposed to fix things but its not upstream, yet.
> Do you know what happened to that?

right, patch below is needed to fix things.

Ted just acked it on the list recently; Greg, I'd either drop 116/165
for now, or include the patch below which should be upstream soon...

-Eric

> -Stefan
> 
> PATCH] ext4: fix freeze deadlock under IO
> 
> Commit 6b0310fbf087ad6 caused a regression resulting in deadlocks
> when freezing a filesystem which had active IO; the vfs_check_frozen
> level (SB_FREEZE_WRITE) did not let the freeze-related IO syncing
> through.  Duh.
> 
> Changing the test to FREEZE_TRANS should let the normal freeze
> syncing get through the fs, but still block any transactions from
> starting once the fs is completely frozen.
> 
> I tested this by running fsstress in the background while periodically
> snapshotting the fs and running fsck on the result.  I ran into
> occasional deadlocks, but different ones.  I think this is a
> fine fix for the problem at hand, and the other deadlocky things
> will need more investigation.
> 
> Reported-by: Phillip Susi <psusi@cfl.rr.com>
> Signed-off-by: Eric Sandeen <sandeen@redhat.com>
> ---
> 
> diff --git a/fs/ext4/super.c b/fs/ext4/super.c
> index 4e8983a..a45ced9 100644
> --- a/fs/ext4/super.c
> +++ b/fs/ext4/super.c
> @@ -241,7 +241,7 @@ handle_t *ext4_journal_start_sb(struct super_block *sb, int
> nblocks)
>  	if (sb->s_flags & MS_RDONLY)
>  		return ERR_PTR(-EROFS);
> 
> -	vfs_check_frozen(sb, SB_FREEZE_WRITE);
> +	vfs_check_frozen(sb, SB_FREEZE_TRANS);
>  	/* Special case here: if the journal has aborted behind our
>  	 * backs (eg. EIO in the commit thread), then we still need to
>  	 * take the FS itself readonly cleanly. */
> @@ -3491,7 +3491,7 @@ int ext4_force_commit(struct super_block *sb)
> 
>  	journal = EXT4_SB(sb)->s_journal;
>  	if (journal) {
> -		vfs_check_frozen(sb, SB_FREEZE_WRITE);
> +		vfs_check_frozen(sb, SB_FREEZE_TRANS);
>  		ret = ext4_journal_force_commit(journal);
>  	}
> 
> 
> 
> On 07/30/2010 07:15 PM, Greg KH wrote:
>> 2.6.32-stable review patch.  If anyone has any objections, please let us know.
>>
>> ------------------
>>
>> commit 6b0310fbf087ad6e9e3b8392adca97cd77184084 upstream (as of v2.6.34-git13)
>>
>> ext4_freeze() used jbd2_journal_lock_updates() which takes
>> the j_barrier mutex, and then returns to userspace.  The
>> kernel does not like this:
>>
>> ================================================
>> [ BUG: lock held when returning to user space! ]
>> ------------------------------------------------
>> lvcreate/1075 is leaving the kernel with locks still held!
>> 1 lock held by lvcreate/1075:
>>  #0:  (&journal->j_barrier){+.+...}, at: [<ffffffff811c6214>]
>> jbd2_journal_lock_updates+0xe1/0xf0
>>
>> Use vfs_check_frozen() added to ext4_journal_start_sb() and
>> ext4_force_commit() instead.
>>
>> Addresses-Red-Hat-Bugzilla: #568503
>>
>> Signed-off-by: Eric Sandeen <sandeen@redhat.com>
>> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
>> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
>> ---
>>  fs/ext4/super.c |   20 ++++++++++----------
>>  1 file changed, 10 insertions(+), 10 deletions(-)
>>
>> --- a/fs/ext4/super.c
>> +++ b/fs/ext4/super.c
>> @@ -227,6 +227,7 @@ handle_t *ext4_journal_start_sb(struct s
>>  	if (sb->s_flags & MS_RDONLY)
>>  		return ERR_PTR(-EROFS);
>>  
>> +	vfs_check_frozen(sb, SB_FREEZE_WRITE);
>>  	/* Special case here: if the journal has aborted behind our
>>  	 * backs (eg. EIO in the commit thread), then we still need to
>>  	 * take the FS itself readonly cleanly. */
>> @@ -3391,8 +3392,10 @@ int ext4_force_commit(struct super_block
>>  		return 0;
>>  
>>  	journal = EXT4_SB(sb)->s_journal;
>> -	if (journal)
>> +	if (journal) {
>> +		vfs_check_frozen(sb, SB_FREEZE_WRITE);
>>  		ret = ext4_journal_force_commit(journal);
>> +	}
>>  
>>  	return ret;
>>  }
>> @@ -3441,18 +3444,16 @@ static int ext4_freeze(struct super_bloc
>>  	 * the journal.
>>  	 */
>>  	error = jbd2_journal_flush(journal);
>> -	if (error < 0) {
>> -	out:
>> -		jbd2_journal_unlock_updates(journal);
>> -		return error;
>> -	}
>> +	if (error < 0)
>> +		goto out;
>>  
>>  	/* Journal blocked and flushed, clear needs_recovery flag. */
>>  	EXT4_CLEAR_INCOMPAT_FEATURE(sb, EXT4_FEATURE_INCOMPAT_RECOVER);
>>  	error = ext4_commit_super(sb, 1);
>> -	if (error)
>> -		goto out;
>> -	return 0;
>> +out:
>> +	/* we rely on s_frozen to stop further updates */
>> +	jbd2_journal_unlock_updates(EXT4_SB(sb)->s_journal);
>> +	return error;
>>  }
>>  
>>  /*
>> @@ -3469,7 +3470,6 @@ static int ext4_unfreeze(struct super_bl
>>  	EXT4_SET_INCOMPAT_FEATURE(sb, EXT4_FEATURE_INCOMPAT_RECOVER);
>>  	ext4_commit_super(sb, 1);
>>  	unlock_super(sb);
>> -	jbd2_journal_unlock_updates(EXT4_SB(sb)->s_journal);
>>  	return 0;
>>  }
>>  
>>
>>
>> _______________________________________________
>> Stable-review mailing list
>> Stable-review@linux.kernel.org
>> http://linux.kernel.org/mailman/listinfo/stable-review
> 


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

* Re: [stable] [Stable-review] [116/165] ext4: dont return to userspace after freezing the fs with a mutex held
  2010-08-02 17:02   ` Eric Sandeen
@ 2010-08-02 18:48     ` Greg KH
  2010-08-07  4:07       ` Henrique de Moraes Holschuh
  0 siblings, 1 reply; 13+ messages in thread
From: Greg KH @ 2010-08-02 18:48 UTC (permalink / raw)
  To: Eric Sandeen
  Cc: Stefan Bader, Greg KH, linux-kernel, stable, akpm, torvalds,
	stable-review, alan

On Mon, Aug 02, 2010 at 12:02:45PM -0500, Eric Sandeen wrote:
> On 08/02/2010 07:04 AM, Stefan Bader wrote:
> > We have reports about this patch breaking lvm snapshhots. Eric, there is a patch
> > mentioned which is supposed to fix things but its not upstream, yet.
> > Do you know what happened to that?
> 
> right, patch below is needed to fix things.
> 
> Ted just acked it on the list recently; Greg, I'd either drop 116/165
> for now, or include the patch below which should be upstream soon...

I can't take anything that isn't upstream yet.

And I just released with this patch in the kernel, should I do a revert
and do a new release?

thanks,

greg k-h

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

* Re: [stable] [Stable-review] [116/165] ext4: dont return to userspace after freezing the fs with a mutex held
  2010-08-02 18:48     ` [stable] " Greg KH
@ 2010-08-07  4:07       ` Henrique de Moraes Holschuh
  2010-08-07  5:15         ` Greg KH
  2010-08-07 13:38         ` Eric Sandeen
  0 siblings, 2 replies; 13+ messages in thread
From: Henrique de Moraes Holschuh @ 2010-08-07  4:07 UTC (permalink / raw)
  To: Greg KH
  Cc: Eric Sandeen, Stefan Bader, Greg KH, linux-kernel, stable, akpm,
	torvalds, stable-review, alan

On Mon, 02 Aug 2010, Greg KH wrote:
> On Mon, Aug 02, 2010 at 12:02:45PM -0500, Eric Sandeen wrote:
> > On 08/02/2010 07:04 AM, Stefan Bader wrote:
> > > We have reports about this patch breaking lvm snapshhots. Eric, there is a patch
> > > mentioned which is supposed to fix things but its not upstream, yet.
> > > Do you know what happened to that?
> > 
> > right, patch below is needed to fix things.
> > 
> > Ted just acked it on the list recently; Greg, I'd either drop 116/165
> > for now, or include the patch below which should be upstream soon...
> 
> I can't take anything that isn't upstream yet.
> 
> And I just released with this patch in the kernel, should I do a revert
> and do a new release?

Any answers on this?

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh

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

* Re: [stable] [Stable-review] [116/165] ext4: dont return to userspace after freezing the fs with a mutex held
  2010-08-07  4:07       ` Henrique de Moraes Holschuh
@ 2010-08-07  5:15         ` Greg KH
  2010-08-07 13:38         ` Eric Sandeen
  1 sibling, 0 replies; 13+ messages in thread
From: Greg KH @ 2010-08-07  5:15 UTC (permalink / raw)
  To: Henrique de Moraes Holschuh
  Cc: Eric Sandeen, Stefan Bader, Greg KH, linux-kernel, stable, akpm,
	torvalds, stable-review, alan

On Sat, Aug 07, 2010 at 01:07:32AM -0300, Henrique de Moraes Holschuh wrote:
> On Mon, 02 Aug 2010, Greg KH wrote:
> > On Mon, Aug 02, 2010 at 12:02:45PM -0500, Eric Sandeen wrote:
> > > On 08/02/2010 07:04 AM, Stefan Bader wrote:
> > > > We have reports about this patch breaking lvm snapshhots. Eric, there is a patch
> > > > mentioned which is supposed to fix things but its not upstream, yet.
> > > > Do you know what happened to that?
> > > 
> > > right, patch below is needed to fix things.
> > > 
> > > Ted just acked it on the list recently; Greg, I'd either drop 116/165
> > > for now, or include the patch below which should be upstream soon...
> > 
> > I can't take anything that isn't upstream yet.
> > 
> > And I just released with this patch in the kernel, should I do a revert
> > and do a new release?
> 
> Any answers on this?

Nope :(

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

* Re: [stable] [Stable-review] [116/165] ext4: dont return to userspace after freezing the fs with a mutex held
  2010-08-07  4:07       ` Henrique de Moraes Holschuh
  2010-08-07  5:15         ` Greg KH
@ 2010-08-07 13:38         ` Eric Sandeen
  2010-08-09  9:00           ` Stefan Bader
  1 sibling, 1 reply; 13+ messages in thread
From: Eric Sandeen @ 2010-08-07 13:38 UTC (permalink / raw)
  To: Henrique de Moraes Holschuh
  Cc: Greg KH, Stefan Bader, Greg KH, linux-kernel, stable, akpm,
	torvalds, stable-review, alan

Henrique de Moraes Holschuh wrote:
> On Mon, 02 Aug 2010, Greg KH wrote:
>> On Mon, Aug 02, 2010 at 12:02:45PM -0500, Eric Sandeen wrote:
>>> On 08/02/2010 07:04 AM, Stefan Bader wrote:
>>>> We have reports about this patch breaking lvm snapshhots. Eric, there is a patch
>>>> mentioned which is supposed to fix things but its not upstream, yet.
>>>> Do you know what happened to that?
>>> right, patch below is needed to fix things.
>>>
>>> Ted just acked it on the list recently; Greg, I'd either drop 116/165
>>> for now, or include the patch below which should be upstream soon...
>> I can't take anything that isn't upstream yet.
>>
>> And I just released with this patch in the kernel, should I do a revert
>> and do a new release?
> 
> Any answers on this?
> 

Yes, I'd revert it for now, I'm afraid, if the other patch isn't upstream
yet.

Sorry about that,

-Eric

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

* Re: [stable] [Stable-review] [116/165] ext4: dont return to userspace after freezing the fs with a mutex held
  2010-08-07 13:38         ` Eric Sandeen
@ 2010-08-09  9:00           ` Stefan Bader
  2010-08-10 20:16             ` Greg KH
  2018-07-05 16:25             ` [stable] [Stable-review] " Greg KH
  0 siblings, 2 replies; 13+ messages in thread
From: Stefan Bader @ 2010-08-09  9:00 UTC (permalink / raw)
  To: Eric Sandeen
  Cc: Henrique de Moraes Holschuh, Greg KH, Greg KH, linux-kernel,
	stable, akpm, torvalds, stable-review, alan

On 08/07/2010 03:38 PM, Eric Sandeen wrote:
> Henrique de Moraes Holschuh wrote:
>> On Mon, 02 Aug 2010, Greg KH wrote:
>>> On Mon, Aug 02, 2010 at 12:02:45PM -0500, Eric Sandeen wrote:
>>>> On 08/02/2010 07:04 AM, Stefan Bader wrote:
>>>>> We have reports about this patch breaking lvm snapshhots. Eric, there is a patch
>>>>> mentioned which is supposed to fix things but its not upstream, yet.
>>>>> Do you know what happened to that?
>>>> right, patch below is needed to fix things.
>>>>
>>>> Ted just acked it on the list recently; Greg, I'd either drop 116/165
>>>> for now, or include the patch below which should be upstream soon...
>>> I can't take anything that isn't upstream yet.
>>>
>>> And I just released with this patch in the kernel, should I do a revert
>>> and do a new release?
>>
>> Any answers on this?
>>
> 
> Yes, I'd revert it for now, I'm afraid, if the other patch isn't upstream
> yet.
> 
> Sorry about that,
> 
> -Eric

Upstream as of now (same SHA1 as in linux-next):

>From 437f88cc031ffe7f37f3e705367f4fe1f4be8b0f Mon Sep 17 00:00:00 2001
From: Eric Sandeen <sandeen@sandeen.net>
Date: Sun, 1 Aug 2010 17:33:29 -0400
Subject: [PATCH] (pre-stable) ext4: fix freeze deadlock under IO

-Stefan

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

* Re: [stable] [Stable-review] [116/165] ext4: dont return to userspace after freezing the fs with a mutex held
  2010-08-09  9:00           ` Stefan Bader
@ 2010-08-10 20:16             ` Greg KH
  2010-08-11  8:56               ` Stefan Bader
  2018-07-05 16:25             ` [stable] [Stable-review] " Greg KH
  1 sibling, 1 reply; 13+ messages in thread
From: Greg KH @ 2010-08-10 20:16 UTC (permalink / raw)
  To: Stefan Bader
  Cc: Eric Sandeen, Henrique de Moraes Holschuh, Greg KH, linux-kernel,
	stable, akpm, torvalds, stable-review, alan

On Mon, Aug 09, 2010 at 11:00:43AM +0200, Stefan Bader wrote:
> On 08/07/2010 03:38 PM, Eric Sandeen wrote:
> > Henrique de Moraes Holschuh wrote:
> >> On Mon, 02 Aug 2010, Greg KH wrote:
> >>> On Mon, Aug 02, 2010 at 12:02:45PM -0500, Eric Sandeen wrote:
> >>>> On 08/02/2010 07:04 AM, Stefan Bader wrote:
> >>>>> We have reports about this patch breaking lvm snapshhots. Eric, there is a patch
> >>>>> mentioned which is supposed to fix things but its not upstream, yet.
> >>>>> Do you know what happened to that?
> >>>> right, patch below is needed to fix things.
> >>>>
> >>>> Ted just acked it on the list recently; Greg, I'd either drop 116/165
> >>>> for now, or include the patch below which should be upstream soon...
> >>> I can't take anything that isn't upstream yet.
> >>>
> >>> And I just released with this patch in the kernel, should I do a revert
> >>> and do a new release?
> >>
> >> Any answers on this?
> >>
> > 
> > Yes, I'd revert it for now, I'm afraid, if the other patch isn't upstream
> > yet.
> > 
> > Sorry about that,
> > 
> > -Eric
> 
> Upstream as of now (same SHA1 as in linux-next):
> 
> >From 437f88cc031ffe7f37f3e705367f4fe1f4be8b0f Mon Sep 17 00:00:00 2001
> From: Eric Sandeen <sandeen@sandeen.net>
> Date: Sun, 1 Aug 2010 17:33:29 -0400
> Subject: [PATCH] (pre-stable) ext4: fix freeze deadlock under IO

It looks like I can't drop the original one, as this patch builds on it.
So I'll just queue this one up.

Should it also go into other -stable releases (like .35 and/or .34 -stable?)

thanks,

greg k-h

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

* Re: [stable] [Stable-review] [116/165] ext4: dont return to userspace after freezing the fs with a mutex held
  2010-08-10 20:16             ` Greg KH
@ 2010-08-11  8:56               ` Stefan Bader
  2010-08-11 12:20                 ` Eric Sandeen
  0 siblings, 1 reply; 13+ messages in thread
From: Stefan Bader @ 2010-08-11  8:56 UTC (permalink / raw)
  To: Greg KH
  Cc: Eric Sandeen, Henrique de Moraes Holschuh, Greg KH, linux-kernel,
	stable, akpm, torvalds, stable-review, alan

On 08/10/2010 10:16 PM, Greg KH wrote:
> On Mon, Aug 09, 2010 at 11:00:43AM +0200, Stefan Bader wrote:
>> On 08/07/2010 03:38 PM, Eric Sandeen wrote:
>>> Henrique de Moraes Holschuh wrote:
>>>> On Mon, 02 Aug 2010, Greg KH wrote:
>>>>> On Mon, Aug 02, 2010 at 12:02:45PM -0500, Eric Sandeen wrote:
>>>>>> On 08/02/2010 07:04 AM, Stefan Bader wrote:
>>>>>>> We have reports about this patch breaking lvm snapshhots. Eric, there is a patch
>>>>>>> mentioned which is supposed to fix things but its not upstream, yet.
>>>>>>> Do you know what happened to that?
>>>>>> right, patch below is needed to fix things.
>>>>>>
>>>>>> Ted just acked it on the list recently; Greg, I'd either drop 116/165
>>>>>> for now, or include the patch below which should be upstream soon...
>>>>> I can't take anything that isn't upstream yet.
>>>>>
>>>>> And I just released with this patch in the kernel, should I do a revert
>>>>> and do a new release?
>>>>
>>>> Any answers on this?
>>>>
>>>
>>> Yes, I'd revert it for now, I'm afraid, if the other patch isn't upstream
>>> yet.
>>>
>>> Sorry about that,
>>>
>>> -Eric
>>
>> Upstream as of now (same SHA1 as in linux-next):
>>
>> >From 437f88cc031ffe7f37f3e705367f4fe1f4be8b0f Mon Sep 17 00:00:00 2001
>> From: Eric Sandeen <sandeen@sandeen.net>
>> Date: Sun, 1 Aug 2010 17:33:29 -0400
>> Subject: [PATCH] (pre-stable) ext4: fix freeze deadlock under IO
> 
> It looks like I can't drop the original one, as this patch builds on it.
> So I'll just queue this one up.
> 
> Should it also go into other -stable releases (like .35 and/or .34 -stable?)
> 

Final call would be Eric/Ted but as far as I can see:

.34: not for now (patch that causes regression not backported there (yet))
.35: yes (offending patch has been in 2.6.35-rc1)

-Stefan

> thanks,
> 
> greg k-h


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

* Re: [stable] [Stable-review] [116/165] ext4: dont return to userspace after freezing the fs with a mutex held
  2010-08-11  8:56               ` Stefan Bader
@ 2010-08-11 12:20                 ` Eric Sandeen
  2010-08-11 12:34                   ` [Stable-review] [stable] " Ted Ts'o
  0 siblings, 1 reply; 13+ messages in thread
From: Eric Sandeen @ 2010-08-11 12:20 UTC (permalink / raw)
  To: Stefan Bader
  Cc: Greg KH, Henrique de Moraes Holschuh, Greg KH, linux-kernel,
	stable, akpm, torvalds, stable-review, alan

Stefan Bader wrote:
> On 08/10/2010 10:16 PM, Greg KH wrote:
>> On Mon, Aug 09, 2010 at 11:00:43AM +0200, Stefan Bader wrote:
>>> On 08/07/2010 03:38 PM, Eric Sandeen wrote:
>>>> Henrique de Moraes Holschuh wrote:
>>>>> On Mon, 02 Aug 2010, Greg KH wrote:
>>>>>> On Mon, Aug 02, 2010 at 12:02:45PM -0500, Eric Sandeen wrote:
>>>>>>> On 08/02/2010 07:04 AM, Stefan Bader wrote:
>>>>>>>> We have reports about this patch breaking lvm snapshhots. Eric, there is a patch
>>>>>>>> mentioned which is supposed to fix things but its not upstream, yet.
>>>>>>>> Do you know what happened to that?
>>>>>>> right, patch below is needed to fix things.
>>>>>>>
>>>>>>> Ted just acked it on the list recently; Greg, I'd either drop 116/165
>>>>>>> for now, or include the patch below which should be upstream soon...
>>>>>> I can't take anything that isn't upstream yet.
>>>>>>
>>>>>> And I just released with this patch in the kernel, should I do a revert
>>>>>> and do a new release?
>>>>> Any answers on this?
>>>>>
>>>> Yes, I'd revert it for now, I'm afraid, if the other patch isn't upstream
>>>> yet.
>>>>
>>>> Sorry about that,
>>>>
>>>> -Eric
>>> Upstream as of now (same SHA1 as in linux-next):
>>>
>>> >From 437f88cc031ffe7f37f3e705367f4fe1f4be8b0f Mon Sep 17 00:00:00 2001
>>> From: Eric Sandeen <sandeen@sandeen.net>
>>> Date: Sun, 1 Aug 2010 17:33:29 -0400
>>> Subject: [PATCH] (pre-stable) ext4: fix freeze deadlock under IO
>> It looks like I can't drop the original one, as this patch builds on it.
>> So I'll just queue this one up.
>>
>> Should it also go into other -stable releases (like .35 and/or .34 -stable?)
>>
> 
> Final call would be Eric/Ted but as far as I can see:
> 
> .34: not for now (patch that causes regression not backported there (yet))
> .35: yes (offending patch has been in 2.6.35-rc1)

As long as the 2 patches go together it should be fine, I don't think there
are other significant dependencies.

It's also not really an urgent one to fix; returning to userspace w/ a lock
held is pretty icky but in practice has not been an actual problem AFAIK; most
people use lvm to freeze/unfreeze and it all gets cleaned up....

-Eric

> -Stefan
> 
>> thanks,
>>
>> greg k-h
> 


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

* Re: [Stable-review] [stable] [116/165] ext4: dont return to userspace after freezing the fs with a mutex held
  2010-08-11 12:20                 ` Eric Sandeen
@ 2010-08-11 12:34                   ` Ted Ts'o
  0 siblings, 0 replies; 13+ messages in thread
From: Ted Ts'o @ 2010-08-11 12:34 UTC (permalink / raw)
  To: Eric Sandeen
  Cc: Stefan Bader, Greg KH, linux-kernel, stable-review,
	Henrique de Moraes Holschuh, akpm, torvalds, stable, alan

On Wed, Aug 11, 2010 at 08:20:55AM -0400, Eric Sandeen wrote:
> 
> As long as the 2 patches go together it should be fine, I don't
> think there are other significant dependencies.
> 
> It's also not really an urgent one to fix; returning to userspace w/
> a lock held is pretty icky but in practice has not been an actual
> problem AFAIK; most people use lvm to freeze/unfreeze and it all
> gets cleaned up....

Agreed.

I do plan to be uploading stable updates for 2.6.35.x that include the
changes that got pulled for 2.6.35-rc1, and I'll update 2.6.34 and
2.6.32, as well, with 2.6.34 including the updates that somehow didn't
all make it to stable last time.  (I'm thinking about also including
an ftp upload since for some reason some mail server between me at
stable@kernel.org seems to be dropping mail messages when they get
blasted out using git send-email.  :-/ )

I'm at Linuxcon this week though, so I probably won't get to it until
sometime next week.

					- Ted

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

* Re: [stable] [Stable-review] [116/165] ext4: dont return to userspace after freezing the fs with a mutex held
  2010-08-09  9:00           ` Stefan Bader
  2010-08-10 20:16             ` Greg KH
@ 2018-07-05 16:25             ` Greg KH
  1 sibling, 0 replies; 13+ messages in thread
From: Greg KH @ 2018-07-05 16:25 UTC (permalink / raw)
  To: Stefan Bader
  Cc: Eric Sandeen, Henrique de Moraes Holschuh, Greg KH, linux-kernel,
	stable, akpm, torvalds, stable-review, alan

On Mon, Aug 09, 2010 at 11:00:43AM +0200, Stefan Bader wrote:
> On 08/07/2010 03:38 PM, Eric Sandeen wrote:
> > Henrique de Moraes Holschuh wrote:
> >> On Mon, 02 Aug 2010, Greg KH wrote:
> >>> On Mon, Aug 02, 2010 at 12:02:45PM -0500, Eric Sandeen wrote:
> >>>> On 08/02/2010 07:04 AM, Stefan Bader wrote:
> >>>>> We have reports about this patch breaking lvm snapshhots. Eric, there is a patch
> >>>>> mentioned which is supposed to fix things but its not upstream, yet.
> >>>>> Do you know what happened to that?
> >>>> right, patch below is needed to fix things.
> >>>>
> >>>> Ted just acked it on the list recently; Greg, I'd either drop 116/165
> >>>> for now, or include the patch below which should be upstream soon...
> >>> I can't take anything that isn't upstream yet.
> >>>
> >>> And I just released with this patch in the kernel, should I do a revert
> >>> and do a new release?
> >>
> >> Any answers on this?
> >>
> > 
> > Yes, I'd revert it for now, I'm afraid, if the other patch isn't upstream
> > yet.
> > 
> > Sorry about that,
> > 
> > -Eric
> 
> Upstream as of now (same SHA1 as in linux-next):
> 
> >From 437f88cc031ffe7f37f3e705367f4fe1f4be8b0f Mon Sep 17 00:00:00 2001
> From: Eric Sandeen <sandeen@sandeen.net>
> Date: Sun, 1 Aug 2010 17:33:29 -0400
> Subject: [PATCH] (pre-stable) ext4: fix freeze deadlock under IO

That is a patch from 2010, are you sure this is what you are looking
for?

confused,

greg k-h

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

end of thread, other threads:[~2018-07-05 16:29 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-30 17:15 [116/165] ext4: dont return to userspace after freezing the fs with a mutex held Greg KH
2010-08-02 12:04 ` [Stable-review] " Stefan Bader
2010-08-02 17:02   ` Eric Sandeen
2010-08-02 18:48     ` [stable] " Greg KH
2010-08-07  4:07       ` Henrique de Moraes Holschuh
2010-08-07  5:15         ` Greg KH
2010-08-07 13:38         ` Eric Sandeen
2010-08-09  9:00           ` Stefan Bader
2010-08-10 20:16             ` Greg KH
2010-08-11  8:56               ` Stefan Bader
2010-08-11 12:20                 ` Eric Sandeen
2010-08-11 12:34                   ` [Stable-review] [stable] " Ted Ts'o
2018-07-05 16:25             ` [stable] [Stable-review] " Greg KH

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