All of lore.kernel.org
 help / color / mirror / Atom feed
* Reiser4: Compilation Error on 2.6.28.1_[Scanned]
@ 2009-01-19  0:53 Ingo Bormuth
  2009-01-19 21:27 ` Edward Shishkin
  0 siblings, 1 reply; 10+ messages in thread
From: Ingo Bormuth @ 2009-01-19  0:53 UTC (permalink / raw)
  To: reiserfs devel

[-- Attachment #1: Type: text/plain, Size: 393 bytes --]

Reiser4-for-2.6.28 does apply but fails to compile on
vanilla-2.6.28.1 due to the following commit:

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=54566b2c1594c2326a645a3551f9d989f7ba3c5e

Attached is a tiny fix which works fine here.


-- 
Ingo Bormuth,  voicebox & telefax:  +49-(0)-12125-10226517
PGP public key 86326EC9 at http://ibormuth.efil.de/contact

[-- Attachment #2: reiser4-for-2.6.28.1-grab_cache_page_write_begin.patch --]
[-- Type: text/x-patch, Size: 400 bytes --]

--- /tmp/reiser4/plugin/file/file_conversion.c	2009-01-19 00:39:04.548008815 +0100
+++ fs/reiser4/plugin/file/file_conversion.c	2009-01-19 00:41:10.956013107 +0100
@@ -686,7 +686,7 @@
 	start = pos & (PAGE_CACHE_SIZE - 1);
 	end = start + len;
 
-	page = __grab_cache_page(mapping, index);
+	page = grab_cache_page_write_begin(mapping, index, flags);
 	*pagep = page;
 	if (!page)
 		return -ENOMEM;

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

* Re: Reiser4: Compilation Error on 2.6.28.1_[Scanned]
  2009-01-19  0:53 Reiser4: Compilation Error on 2.6.28.1_[Scanned] Ingo Bormuth
@ 2009-01-19 21:27 ` Edward Shishkin
  2009-01-25 17:13   ` Volker Armin Hemmann
  0 siblings, 1 reply; 10+ messages in thread
From: Edward Shishkin @ 2009-01-19 21:27 UTC (permalink / raw)
  To: ibormuth; +Cc: reiserfs devel

Ingo Bormuth wrote:
> Reiser4-for-2.6.28 does apply but fails to compile on
> vanilla-2.6.28.1 due to the following commit:
>
> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=54566b2c1594c2326a645a3551f9d989f7ba3c5e
>
> Attached is a tiny fix which works fine here.
yeah, with your patch it will act as earlier,
however, -mm guys decided to get rig of __GFP_FS flag:
http://userweb.kernel.org/~akpm/mmotm/broken-out/fs-symlink-write_begin-allocation-context-fix-reiser4-fix.patch
it seems they found it deadlocky..

Thanks,
Edward.


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

* Re: Reiser4: Compilation Error on 2.6.28.1_[Scanned]
  2009-01-19 21:27 ` Edward Shishkin
@ 2009-01-25 17:13   ` Volker Armin Hemmann
  2009-01-27 10:02     ` Ingo Bormuth
  0 siblings, 1 reply; 10+ messages in thread
From: Volker Armin Hemmann @ 2009-01-25 17:13 UTC (permalink / raw)
  To: reiserfs-devel

On Montag 19 Januar 2009, Edward Shishkin wrote:
> Ingo Bormuth wrote:
> > Reiser4-for-2.6.28 does apply but fails to compile on
> > vanilla-2.6.28.1 due to the following commit:
> >
> > http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit
> >diff;h=54566b2c1594c2326a645a3551f9d989f7ba3c5e
> >
> > Attached is a tiny fix which works fine here.
>
> yeah, with your patch it will act as earlier,
> however, -mm guys decided to get rig of __GFP_FS flag:
> http://userweb.kernel.org/~akpm/mmotm/broken-out/fs-symlink-write_begin-all
>ocation-context-fix-reiser4-fix.patch it seems they found it deadlocky..

so without Ingo Bormuth's patch you can't use r4 with 2.6.28.1 and later and 
with his patch there is a risk of deadlocks?

Glück Auf,
Volker
--
To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: Reiser4: Compilation Error on 2.6.28.1_[Scanned]
@ 2009-01-25 17:15 Volker Armin Hemmann
  2009-01-25 17:32 ` Edward Shishkin
  0 siblings, 1 reply; 10+ messages in thread
From: Volker Armin Hemmann @ 2009-01-25 17:15 UTC (permalink / raw)
  To: reiserfs-devel

On Montag 19 Januar 2009, Edward Shishkin wrote:
> Ingo Bormuth wrote:
> > Reiser4-for-2.6.28 does apply but fails to compile on
> > vanilla-2.6.28.1 due to the following commit:
> >
> > http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit
> >diff;h=54566b2c1594c2326a645a3551f9d989f7ba3c5e
> >
> > Attached is a tiny fix which works fine here.
>
> yeah, with your patch it will act as earlier,
> however, -mm guys decided to get rig of __GFP_FS flag:
> http://userweb.kernel.org/~akpm/mmotm/broken-out/fs-symlink-write_begin-all
>ocation-context-fix-reiser4-fix.patch it seems they found it deadlocky..

so without Ingo Bormuth's patch you can't use r4 with 2.6.28.1 and later and 
with his patch there is a risk of deadlocks?

Glück Auf,
Volker

--
To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: Reiser4: Compilation Error on 2.6.28.1_[Scanned]
  2009-01-25 17:15 Volker Armin Hemmann
@ 2009-01-25 17:32 ` Edward Shishkin
  2009-01-25 17:37   ` Volker Armin Hemmann
  0 siblings, 1 reply; 10+ messages in thread
From: Edward Shishkin @ 2009-01-25 17:32 UTC (permalink / raw)
  To: Volker Armin Hemmann; +Cc: reiserfs-devel

Volker Armin Hemmann wrote:
> On Montag 19 Januar 2009, Edward Shishkin wrote:
>   
>> Ingo Bormuth wrote:
>>     
>>> Reiser4-for-2.6.28 does apply but fails to compile on
>>> vanilla-2.6.28.1 due to the following commit:
>>>
>>> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit
>>> diff;h=54566b2c1594c2326a645a3551f9d989f7ba3c5e
>>>
>>> Attached is a tiny fix which works fine here.
>>>       
>> yeah, with your patch it will act as earlier,
>> however, -mm guys decided to get rig of __GFP_FS flag:
>> http://userweb.kernel.org/~akpm/mmotm/broken-out/fs-symlink-write_begin-all
>> ocation-context-fix-reiser4-fix.patch it seems they found it deadlocky..
>>     
>
> so without Ingo Bormuth's patch you can't use r4 with 2.6.28.1

Ingo's patch is against -rc

>  and later and 
> with his patch there is a risk of deadlocks?
>   

Not sure.
Nobody complained so far..

Edward.

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

* Re: Reiser4: Compilation Error on 2.6.28.1_[Scanned]
  2009-01-25 17:32 ` Edward Shishkin
@ 2009-01-25 17:37   ` Volker Armin Hemmann
  2009-01-25 17:44     ` Edward Shishkin
  0 siblings, 1 reply; 10+ messages in thread
From: Volker Armin Hemmann @ 2009-01-25 17:37 UTC (permalink / raw)
  To: Edward Shishkin; +Cc: reiserfs-devel

On Sonntag 25 Januar 2009, Edward Shishkin wrote:
> Volker Armin Hemmann wrote:
> > On Montag 19 Januar 2009, Edward Shishkin wrote:
> >> Ingo Bormuth wrote:
> >>> Reiser4-for-2.6.28 does apply but fails to compile on
> >>> vanilla-2.6.28.1 due to the following commit:
> >>>
> >>> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=comm
> >>>it diff;h=54566b2c1594c2326a645a3551f9d989f7ba3c5e
> >>>
> >>> Attached is a tiny fix which works fine here.
> >>
> >> yeah, with your patch it will act as earlier,
> >> however, -mm guys decided to get rig of __GFP_FS flag:
> >> http://userweb.kernel.org/~akpm/mmotm/broken-out/fs-symlink-write_begin-
> >>all ocation-context-fix-reiser4-fix.patch it seems they found it
> >> deadlocky..
> >
> > so without Ingo Bormuth's patch you can't use r4 with 2.6.28.1
>
> Ingo's patch is against -rc
>
> >  and later and
> > with his patch there is a risk of deadlocks?
>
> Not sure.
> Nobody complained so far..

hm, I had two lockups with 2.6.28 and your r4 patch so far. Suddenly the box 
only responded to sysrq - and on reboot the software raid5 with my r4 
partitions on needed a resync. Might be related or not. I am back to 2.6.27 
which never showed any misbehaviour.

Glück Auf,
Volker

--
To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: Reiser4: Compilation Error on 2.6.28.1_[Scanned]
  2009-01-25 17:37   ` Volker Armin Hemmann
@ 2009-01-25 17:44     ` Edward Shishkin
  2009-01-25 17:52       ` Teran McKinney
  2009-01-25 17:56       ` Volker Armin Hemmann
  0 siblings, 2 replies; 10+ messages in thread
From: Edward Shishkin @ 2009-01-25 17:44 UTC (permalink / raw)
  To: Volker Armin Hemmann; +Cc: reiserfs-devel

Volker Armin Hemmann wrote:
> On Sonntag 25 Januar 2009, Edward Shishkin wrote:
>   
>> Volker Armin Hemmann wrote:
>>     
>>> On Montag 19 Januar 2009, Edward Shishkin wrote:
>>>       
>>>> Ingo Bormuth wrote:
>>>>         
>>>>> Reiser4-for-2.6.28 does apply but fails to compile on
>>>>> vanilla-2.6.28.1 due to the following commit:
>>>>>
>>>>> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=comm
>>>>> it diff;h=54566b2c1594c2326a645a3551f9d989f7ba3c5e
>>>>>
>>>>> Attached is a tiny fix which works fine here.
>>>>>           
>>>> yeah, with your patch it will act as earlier,
>>>> however, -mm guys decided to get rig of __GFP_FS flag:
>>>> http://userweb.kernel.org/~akpm/mmotm/broken-out/fs-symlink-write_begin-
>>>> all ocation-context-fix-reiser4-fix.patch it seems they found it
>>>> deadlocky..
>>>>         
>>> so without Ingo Bormuth's patch you can't use r4 with 2.6.28.1
>>>       
>> Ingo's patch is against -rc
>>
>>     
>>>  and later and
>>> with his patch there is a risk of deadlocks?
>>>       
>> Not sure.
>> Nobody complained so far..
>>     
>
> hm, I had two lockups with 2.6.28 and your r4 patch so far. Suddenly the box 
> only responded to sysrq

Would you please send the sysrq-t output?

 
>  - and on reboot the software raid5 with my r4 
> partitions on needed a resync. Might be related or not. I am back to 2.6.27 
> which never showed any misbehaviour.
>
> Glück Auf,
> Volker
>
>
>   

--
To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: Reiser4: Compilation Error on 2.6.28.1_[Scanned]
  2009-01-25 17:44     ` Edward Shishkin
@ 2009-01-25 17:52       ` Teran McKinney
  2009-01-25 17:56       ` Volker Armin Hemmann
  1 sibling, 0 replies; 10+ messages in thread
From: Teran McKinney @ 2009-01-25 17:52 UTC (permalink / raw)
  To: Edward Shishkin; +Cc: Volker Armin Hemmann, reiserfs-devel

I could build 2.6.28.1 fine with Reiser4, but if I applied Ingo's
patch, it would not build. I've had no issues, but haven't used
Reiser4 heavily at all yet.

Cheers,
Teran

PS: 2.6.28.2 is out.

On Sun, Jan 25, 2009 at 17:44, Edward Shishkin
<edward.shishkin@gmail.com> wrote:
> Volker Armin Hemmann wrote:
>> On Sonntag 25 Januar 2009, Edward Shishkin wrote:
>>
>>> Volker Armin Hemmann wrote:
>>>
>>>> On Montag 19 Januar 2009, Edward Shishkin wrote:
>>>>
>>>>> Ingo Bormuth wrote:
>>>>>
>>>>>> Reiser4-for-2.6.28 does apply but fails to compile on
>>>>>> vanilla-2.6.28.1 due to the following commit:
>>>>>>
>>>>>> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=comm
>>>>>> it diff;h=54566b2c1594c2326a645a3551f9d989f7ba3c5e
>>>>>>
>>>>>> Attached is a tiny fix which works fine here.
>>>>>>
>>>>> yeah, with your patch it will act as earlier,
>>>>> however, -mm guys decided to get rig of __GFP_FS flag:
>>>>> http://userweb.kernel.org/~akpm/mmotm/broken-out/fs-symlink-write_begin-
>>>>> all ocation-context-fix-reiser4-fix.patch it seems they found it
>>>>> deadlocky..
>>>>>
>>>> so without Ingo Bormuth's patch you can't use r4 with 2.6.28.1
>>>>
>>> Ingo's patch is against -rc
>>>
>>>
>>>>  and later and
>>>> with his patch there is a risk of deadlocks?
>>>>
>>> Not sure.
>>> Nobody complained so far..
>>>
>>
>> hm, I had two lockups with 2.6.28 and your r4 patch so far. Suddenly the box
>> only responded to sysrq
>
> Would you please send the sysrq-t output?
>
>
>>  - and on reboot the software raid5 with my r4
>> partitions on needed a resync. Might be related or not. I am back to 2.6.27
>> which never showed any misbehaviour.
>>
>> Glück Auf,
>> Volker
>>
>>
>>
>
> --
> To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
--
To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: Reiser4: Compilation Error on 2.6.28.1_[Scanned]
  2009-01-25 17:44     ` Edward Shishkin
  2009-01-25 17:52       ` Teran McKinney
@ 2009-01-25 17:56       ` Volker Armin Hemmann
  1 sibling, 0 replies; 10+ messages in thread
From: Volker Armin Hemmann @ 2009-01-25 17:56 UTC (permalink / raw)
  To: Edward Shishkin; +Cc: reiserfs-devel

On Sonntag 25 Januar 2009, you wrote:
> Volker Armin Hemmann wrote:
> > On Sonntag 25 Januar 2009, Edward Shishkin wrote:
> >> Volker Armin Hemmann wrote:
> >>> On Montag 19 Januar 2009, Edward Shishkin wrote:
> >>>> Ingo Bormuth wrote:
> >>>>> Reiser4-for-2.6.28 does apply but fails to compile on
> >>>>> vanilla-2.6.28.1 due to the following commit:
> >>>>>
> >>>>> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=co
> >>>>>mm it diff;h=54566b2c1594c2326a645a3551f9d989f7ba3c5e
> >>>>>
> >>>>> Attached is a tiny fix which works fine here.
> >>>>
> >>>> yeah, with your patch it will act as earlier,
> >>>> however, -mm guys decided to get rig of __GFP_FS flag:
> >>>> http://userweb.kernel.org/~akpm/mmotm/broken-out/fs-symlink-write_begi
> >>>>n- all ocation-context-fix-reiser4-fix.patch it seems they found it
> >>>> deadlocky..
> >>>
> >>> so without Ingo Bormuth's patch you can't use r4 with 2.6.28.1
> >>
> >> Ingo's patch is against -rc
> >>
> >>>  and later and
> >>> with his patch there is a risk of deadlocks?
> >>
> >> Not sure.
> >> Nobody complained so far..
> >
> > hm, I had two lockups with 2.6.28 and your r4 patch so far. Suddenly the
> > box only responded to sysrq
>
> Would you please send the sysrq-t output?

I wish I could - but the logs were empty - and I couldn't even make it back to 
vt. X froze partially, no reaction to input, but apps running continued to do 
so, e, i  killed apps, s and u seemed to have some effect and b worked - but 
after that, raid resync and fsck for the mounted ext2 partition went off. I 
did t too - but as I wrote above, there were nothing in the logs. I am not 
blaming r4 - I am using fglrx which could be the cause. 

Glück Auf,
Volker


--
To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: Reiser4: Compilation Error on 2.6.28.1_[Scanned]
  2009-01-25 17:13   ` Volker Armin Hemmann
@ 2009-01-27 10:02     ` Ingo Bormuth
  0 siblings, 0 replies; 10+ messages in thread
From: Ingo Bormuth @ 2009-01-27 10:02 UTC (permalink / raw)
  To: Volker Armin Hemmann; +Cc: reiserfs-devel

[-- Attachment #1: Type: text/plain, Size: 574 bytes --]

On Sun, 2009-01-25 at 18:13 +0100, Volker Armin Hemmann wrote:
> so without Ingo Bormuth's patch you can't use r4 with 2.6.28.1 and later and 
> with his patch there is a risk of deadlocks?

After Edward's reply actually I changed to use the attached mm patch
which is actually the same as what I did with additionally setting the
AOP_FLAG_NOFS flag before calling grab_cache_page_write_begin. It
applies and works nicely with vanilla 2.6.28.2 too.



-- 
Ingo Bormuth,  voicebox & telefax:  +49-(0)-12125-10226517
PGP public key 86326EC9 at http://ibormuth.efil.de/contact

[-- Attachment #2: fs-symlink-write_begin-allocation-context-fix-reiser4-fix.patch --]
[-- Type: text/x-patch, Size: 936 bytes --]

From: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>

build fix.

Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Nick Piggin <npiggin@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 fs/reiser4/plugin/file/file_conversion.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff -puN fs/reiser4/plugin/file/file_conversion.c~fs-symlink-write_begin-allocation-context-fix-reiser4-fix fs/reiser4/plugin/file/file_conversion.c
--- a/fs/reiser4/plugin/file/file_conversion.c~fs-symlink-write_begin-allocation-context-fix-reiser4-fix
+++ a/fs/reiser4/plugin/file/file_conversion.c
@@ -686,7 +686,8 @@ int reiser4_write_begin_careful(struct f
 	start = pos & (PAGE_CACHE_SIZE - 1);
 	end = start + len;
 
-	page = __grab_cache_page(mapping, index);
+	page = grab_cache_page_write_begin(mapping, index,
+					   flags & AOP_FLAG_NOFS);
 	*pagep = page;
 	if (!page)
 		return -ENOMEM;
_

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

end of thread, other threads:[~2009-01-27 10:02 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-19  0:53 Reiser4: Compilation Error on 2.6.28.1_[Scanned] Ingo Bormuth
2009-01-19 21:27 ` Edward Shishkin
2009-01-25 17:13   ` Volker Armin Hemmann
2009-01-27 10:02     ` Ingo Bormuth
  -- strict thread matches above, loose matches on Subject: below --
2009-01-25 17:15 Volker Armin Hemmann
2009-01-25 17:32 ` Edward Shishkin
2009-01-25 17:37   ` Volker Armin Hemmann
2009-01-25 17:44     ` Edward Shishkin
2009-01-25 17:52       ` Teran McKinney
2009-01-25 17:56       ` Volker Armin Hemmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.