* RE: highmem deadlock fix [was Re: VM in 2.4.10(+tweaks) vs. 2.4.9 -ac14/15(+stuff)]
@ 2001-09-27 22:34 Robert_Macaulay
2001-09-27 22:37 ` Andrea Arcangeli
0 siblings, 1 reply; 3+ messages in thread
From: Robert_Macaulay @ 2001-09-27 22:34 UTC (permalink / raw)
To: andrea; +Cc: riel, ckulesa, linux-kernel, bmatthews, marcelo, torvalds
> -----Original Message-----
> From: Andrea Arcangeli [mailto:andrea@suse.de]
> Sent: Thursday, September 27, 2001 5:13 PM
> To: Macaulay, Robert
> Cc: Rik van Riel; Craig Kulesa; linux-kernel@vger.kernel.org; Bob
> Matthews; Marcelo Tosatti; Linus Torvalds
> Subject: highmem deadlock fix [was Re: VM in 2.4.10(+tweaks) vs.
> 2.4.9-ac14/15(+stuff)]
>
> @@ -2519,7 +2521,9 @@
> int tryagain = 1;
>
> do {
> - if (buffer_dirty(p) || buffer_locked(p)) {
> + if (unlikely(buffer_pending_IO(p)))
> + tryagain = 0;
> + else if (buffer_dirty(p) || buffer_locked(p)) {
> if (test_and_set_bit(BH_Wait_IO, &p->b_state)) {
> if (buffer_dirty(p)) {
> ll_rw_block(WRITE, 1, &p);
>
Im getting an undefined reference to the unlikely function in this patch.
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: highmem deadlock fix [was Re: VM in 2.4.10(+tweaks) vs. 2.4.9 -ac14/15(+stuff)] 2001-09-27 22:34 highmem deadlock fix [was Re: VM in 2.4.10(+tweaks) vs. 2.4.9 -ac14/15(+stuff)] Robert_Macaulay @ 2001-09-27 22:37 ` Andrea Arcangeli 2001-09-27 22:39 ` Andrea Arcangeli 0 siblings, 1 reply; 3+ messages in thread From: Andrea Arcangeli @ 2001-09-27 22:37 UTC (permalink / raw) To: Robert_Macaulay; +Cc: riel, ckulesa, linux-kernel, bmatthews, marcelo, torvalds On Thu, Sep 27, 2001 at 05:34:17PM -0500, Robert_Macaulay@Dell.com wrote: > > > > -----Original Message----- > > From: Andrea Arcangeli [mailto:andrea@suse.de] > > Sent: Thursday, September 27, 2001 5:13 PM > > To: Macaulay, Robert > > Cc: Rik van Riel; Craig Kulesa; linux-kernel@vger.kernel.org; Bob > > Matthews; Marcelo Tosatti; Linus Torvalds > > Subject: highmem deadlock fix [was Re: VM in 2.4.10(+tweaks) vs. > > 2.4.9-ac14/15(+stuff)] > > > > @@ -2519,7 +2521,9 @@ > > int tryagain = 1; > > > > do { > > - if (buffer_dirty(p) || buffer_locked(p)) { > > + if (unlikely(buffer_pending_IO(p))) > > + tryagain = 0; > > + else if (buffer_dirty(p) || buffer_locked(p)) { > > if (test_and_set_bit(BH_Wait_IO, &p->b_state)) { > > if (buffer_dirty(p)) { > > ll_rw_block(WRITE, 1, &p); > > > > Im getting an undefined reference to the unlikely function in this patch. ok, try adding #include <linux/compiler.h> to include/linux/kernel.h, I prefer to have likely/unlikely always available. Andrea ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: highmem deadlock fix [was Re: VM in 2.4.10(+tweaks) vs. 2.4.9 -ac14/15(+stuff)] 2001-09-27 22:37 ` Andrea Arcangeli @ 2001-09-27 22:39 ` Andrea Arcangeli 0 siblings, 0 replies; 3+ messages in thread From: Andrea Arcangeli @ 2001-09-27 22:39 UTC (permalink / raw) To: Robert_Macaulay; +Cc: riel, ckulesa, linux-kernel, bmatthews, marcelo, torvalds On Fri, Sep 28, 2001 at 12:37:46AM +0200, Andrea Arcangeli wrote: > On Thu, Sep 27, 2001 at 05:34:17PM -0500, Robert_Macaulay@Dell.com wrote: > > > > > > > -----Original Message----- > > > From: Andrea Arcangeli [mailto:andrea@suse.de] > > > Sent: Thursday, September 27, 2001 5:13 PM > > > To: Macaulay, Robert > > > Cc: Rik van Riel; Craig Kulesa; linux-kernel@vger.kernel.org; Bob > > > Matthews; Marcelo Tosatti; Linus Torvalds > > > Subject: highmem deadlock fix [was Re: VM in 2.4.10(+tweaks) vs. > > > 2.4.9-ac14/15(+stuff)] > > > > > > @@ -2519,7 +2521,9 @@ > > > int tryagain = 1; > > > > > > do { > > > - if (buffer_dirty(p) || buffer_locked(p)) { > > > + if (unlikely(buffer_pending_IO(p))) > > > + tryagain = 0; > > > + else if (buffer_dirty(p) || buffer_locked(p)) { > > > if (test_and_set_bit(BH_Wait_IO, &p->b_state)) { > > > if (buffer_dirty(p)) { > > > ll_rw_block(WRITE, 1, &p); > > > > > > > Im getting an undefined reference to the unlikely function in this patch. > > ok, try adding #include <linux/compiler.h> to include/linux/kernel.h, I > prefer to have likely/unlikely always available. --- 2.4.10aa2/fs/inode.c.~1~ Wed Sep 26 18:45:27 2001 +++ 2.4.10aa2/fs/inode.c Fri Sep 28 00:38:39 2001 @@ -17,7 +17,6 @@ #include <linux/swapctl.h> #include <linux/prefetch.h> #include <linux/locks.h> -#include <linux/compiler.h> /* * New inode.c implementation. --- 2.4.10aa2/include/linux/kernel.h.~1~ Wed Sep 26 18:51:24 2001 +++ 2.4.10aa2/include/linux/kernel.h Fri Sep 28 00:38:13 2001 @@ -11,6 +11,7 @@ #include <linux/linkage.h> #include <linux/stddef.h> #include <linux/types.h> +#include <linux/compiler.h> /* Optimization barrier */ /* The "volatile" is due to gcc bugs */ --- 2.4.10aa2/mm/page_alloc.c.~1~ Wed Sep 26 18:45:28 2001 +++ 2.4.10aa2/mm/page_alloc.c Fri Sep 28 00:38:22 2001 @@ -17,7 +17,6 @@ #include <linux/pagemap.h> #include <linux/bootmem.h> #include <linux/slab.h> -#include <linux/compiler.h> #include <linux/vmalloc.h> int nr_swap_pages; --- 2.4.10aa2/mm/slab.c.~1~ Wed Sep 26 18:45:29 2001 +++ 2.4.10aa2/mm/slab.c Fri Sep 28 00:38:24 2001 @@ -72,7 +72,6 @@ #include <linux/slab.h> #include <linux/interrupt.h> #include <linux/init.h> -#include <linux/compiler.h> #include <asm/uaccess.h> /* --- 2.4.10aa2/mm/swapfile.c.~1~ Sun Sep 23 21:11:43 2001 +++ 2.4.10aa2/mm/swapfile.c Fri Sep 28 00:38:26 2001 @@ -14,7 +14,6 @@ #include <linux/vmalloc.h> #include <linux/pagemap.h> #include <linux/shm.h> -#include <linux/compiler.h> #include <asm/pgtable.h> --- 2.4.10aa2/mm/vmscan.c.~1~ Wed Sep 26 18:45:28 2001 +++ 2.4.10aa2/mm/vmscan.c Fri Sep 28 00:38:29 2001 @@ -21,7 +21,6 @@ #include <linux/init.h> #include <linux/highmem.h> #include <linux/file.h> -#include <linux/compiler.h> #include <asm/pgalloc.h> Andrea ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-09-27 22:39 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2001-09-27 22:34 highmem deadlock fix [was Re: VM in 2.4.10(+tweaks) vs. 2.4.9 -ac14/15(+stuff)] Robert_Macaulay 2001-09-27 22:37 ` Andrea Arcangeli 2001-09-27 22:39 ` Andrea Arcangeli
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®