public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ext4: add blk_finish_plug in error case of writepages.
@ 2011-11-05  5:49 Namjae Jeon
  2011-11-05  7:25 ` Kyungmin Park
  0 siblings, 1 reply; 4+ messages in thread
From: Namjae Jeon @ 2011-11-05  5:49 UTC (permalink / raw)
  To: tytso; +Cc: linux-kernel, Namjae Jeon

blk_finish_plug is needed in error case of writepages.

Signed-off-by: Namjae Jeon <linkinjeon@gmail.com>
---
 fs/ext4/inode.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index cc5a6da..18b262b 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -2270,6 +2270,7 @@ retry:
 			ext4_msg(inode->i_sb, KERN_CRIT, "%s: jbd2_start: "
 			       "%ld pages, ino %lu; err %d", __func__,
 				wbc->nr_to_write, inode->i_ino, ret);
+			blk_finish_plug(&plug);
 			goto out_writepages;
 		}
 
-- 
1.7.4.4


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

* Re: [PATCH] ext4: add blk_finish_plug in error case of writepages.
  2011-11-05  5:49 [PATCH] ext4: add blk_finish_plug in error case of writepages Namjae Jeon
@ 2011-11-05  7:25 ` Kyungmin Park
  2011-11-05  9:02   ` NamJae Jeon
  2011-11-07 16:09   ` Ted Ts'o
  0 siblings, 2 replies; 4+ messages in thread
From: Kyungmin Park @ 2011-11-05  7:25 UTC (permalink / raw)
  To: Namjae Jeon; +Cc: tytso, linux-kernel

It's already fixed after finding the bug by original author.

Thank you,
Kyungmin Park

On Sat, Nov 5, 2011 at 2:49 PM, Namjae Jeon <linkinjeon@gmail.com> wrote:
> blk_finish_plug is needed in error case of writepages.
>
> Signed-off-by: Namjae Jeon <linkinjeon@gmail.com>
> ---
>  fs/ext4/inode.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
> index cc5a6da..18b262b 100644
> --- a/fs/ext4/inode.c
> +++ b/fs/ext4/inode.c
> @@ -2270,6 +2270,7 @@ retry:
>                        ext4_msg(inode->i_sb, KERN_CRIT, "%s: jbd2_start: "
>                               "%ld pages, ino %lu; err %d", __func__,
>                                wbc->nr_to_write, inode->i_ino, ret);
> +                       blk_finish_plug(&plug);
>                        goto out_writepages;
>                }
>
> --
> 1.7.4.4
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>

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

* Re: [PATCH] ext4: add blk_finish_plug in error case of writepages.
  2011-11-05  7:25 ` Kyungmin Park
@ 2011-11-05  9:02   ` NamJae Jeon
  2011-11-07 16:09   ` Ted Ts'o
  1 sibling, 0 replies; 4+ messages in thread
From: NamJae Jeon @ 2011-11-05  9:02 UTC (permalink / raw)
  To: Kyungmin Park; +Cc: tytso, linux-kernel

2011/11/5 Kyungmin Park <kmpark@infradead.org>:
> It's already fixed after finding the bug by original author.
>
> Thank you,
> Kyungmin Park
Hi. Park.
This bug is not fixed yet on the latest git of ted,
Do I know to be wrong ?
Thanks.
>
> On Sat, Nov 5, 2011 at 2:49 PM, Namjae Jeon <linkinjeon@gmail.com> wrote:
>> blk_finish_plug is needed in error case of writepages.
>>
>> Signed-off-by: Namjae Jeon <linkinjeon@gmail.com>
>> ---
>>  fs/ext4/inode.c |    1 +
>>  1 files changed, 1 insertions(+), 0 deletions(-)
>>
>> diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
>> index cc5a6da..18b262b 100644
>> --- a/fs/ext4/inode.c
>> +++ b/fs/ext4/inode.c
>> @@ -2270,6 +2270,7 @@ retry:
>>                        ext4_msg(inode->i_sb, KERN_CRIT, "%s: jbd2_start: "
>>                               "%ld pages, ino %lu; err %d", __func__,
>>                                wbc->nr_to_write, inode->i_ino, ret);
>> +                       blk_finish_plug(&plug);
>>                        goto out_writepages;
>>                }
>>
>> --
>> 1.7.4.4
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>> Please read the FAQ at  http://www.tux.org/lkml/
>>
>

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

* Re: [PATCH] ext4: add blk_finish_plug in error case of writepages.
  2011-11-05  7:25 ` Kyungmin Park
  2011-11-05  9:02   ` NamJae Jeon
@ 2011-11-07 16:09   ` Ted Ts'o
  1 sibling, 0 replies; 4+ messages in thread
From: Ted Ts'o @ 2011-11-07 16:09 UTC (permalink / raw)
  To: Kyungmin Park; +Cc: Namjae Jeon, linux-kernel

On Sat, Nov 05, 2011 at 04:25:52PM +0900, Kyungmin Park wrote:
> It's already fixed after finding the bug by original author.

Hmm, if so I must have checked in the wrong version.  My apologies.

I've applied Namjae Jeon patch as it the blk_finish_plug() does seem
to be missing in the error path.

						- Ted

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

end of thread, other threads:[~2011-11-07 16:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-05  5:49 [PATCH] ext4: add blk_finish_plug in error case of writepages Namjae Jeon
2011-11-05  7:25 ` Kyungmin Park
2011-11-05  9:02   ` NamJae Jeon
2011-11-07 16:09   ` Ted Ts'o

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