hugepage: Fix broken check for offset alignment in hugepage mappings

2007-08-26 Thread David Gibson
For hugepage mappings, the file offset, like the address and size, needs to be aligned to the size of a hugepage. In commit 68589bc353037f233fe510ad9ff432338c95db66, the check for this was moved into prepare_hugepage_range() along with the address and size checks. But since BenH's rework of the g

Re: [RFC][PATCH 0/2 -mm] kexec based hibernation

2007-08-26 Thread Vivek Goyal
On Mon, Aug 27, 2007 at 09:14:05AM +0800, Huang, Ying wrote: > Kexec base hibernation has some potential advantages over uswsusp and > TuxOnIce (suspend2). Some most obvious advantages are: > > 1. The hibernation image size can exceed half of memory size easily. > > 2. The hibernation image can b

Re: [PATCH] kexec: reenable HPET before kexec

2007-08-26 Thread Vivek Goyal
On Thu, Aug 23, 2007 at 03:49:36PM +0400, Konstantin Baydarov wrote: > On Thu, 23 Aug 2007 14:38:45 +0530 > Vivek Goyal <[EMAIL PROTECTED]> wrote: > > Does your kernel 2 boot normally? I mean through BIOS and boot-loader? > > This explanation seems to be suggesting that because PM and ACPI is > > d

Re: [PATCH 2.6.23-rc3-mm1] request_irq fix DEBUG_SHIRQ handling Re: 2.6.23-rc2-mm1: rtl8139 inconsistent lock state

2007-08-26 Thread Jarek Poplawski
On Sat, Aug 25, 2007 at 11:43:08AM +0200, Mariusz Kozlowski wrote: > > > = > > > [ INFO: inconsistent lock state ] > > > 2.6.23-rc2-mm1 #7 > > > - > > > inconsistent {in-hardirq-W} -> {hardirq-on-W} usage. > > > ifconfig/5492 [HC0[0]:S

Re: [PATCH] sigqueue_free: fix the race with collect_signal()

2007-08-26 Thread Oleg Nesterov
On 08/27, taoyue wrote: > > Oleg Nesterov wrote: > >On 08/24, Sukadev Bhattiprolu wrote: > > > I know, using current->sighand->siglock to prevent one sigqueue > is free twice. I want to know whether it is possible that the two > function is called in different thread. If t

Re: hugepage: Fix broken check for offset alignment in hugepage mappings

2007-08-26 Thread Benjamin Herrenschmidt
On Mon, 2007-08-27 at 14:36 +1000, David Gibson wrote: > This patch restores the check, removing it from > prepare_hugepage_range() and putting it back into > hugetlbfs_file_mmap(). I'm putting it there, rather than in the > get_unmapped_area() path so it only needs to go in one place, than > sepa

Re: [RFC][PATCH 0/2 -mm] kexec based hibernation

2007-08-26 Thread Huang, Ying
On Mon, 2007-08-27 at 10:30 +0530, Vivek Goyal wrote: > On Mon, Aug 27, 2007 at 09:14:05AM +0800, Huang, Ying wrote: > > Kexec base hibernation has some potential advantages over uswsusp and > > TuxOnIce (suspend2). Some most obvious advantages are: > > > > 1. The hibernation image size can exceed

Re: net/ipv4/fib_trie.c - compile error (Re: 2.6.23-rc3-mm1)

2007-08-26 Thread Jarek Poplawski
On 22-08-2007 19:03, Paul E. McKenney wrote: > On Wed, Aug 22, 2007 at 05:41:11PM +0200, Adrian Bunk wrote: >> On Wed, Aug 22, 2007 at 05:30:13PM +0200, Gabriel C wrote: >>> Got it with a randconfig ( >>> http://194.231.229.228/kernel/mm/2.6.23-rc3-mm1/r/randconfig-8 ) >>> >>> ... >>> >>> net/ipv4

Re: Problems with disc-performance and libata

2007-08-26 Thread Oliver Janscheidt
Hi Michal, thanks for your reply! Am Montag, den 27.08.2007, 01:59 +0200 schrieb Michal Piotrowski: > Hi Oliver, > > [Adding linux-ide to CC] > > On 26/08/07, Oliver Janscheidt <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I'm using a Lenovo Thinkpad with TOSHIBA MK1234GS HD and MATSHITA > > DVD-R

Re: [PATCH] SLUB use cmpxchg_local

2007-08-26 Thread Peter Zijlstra
On Tue, 2007-08-21 at 16:14 -0700, Christoph Lameter wrote: > On Tue, 21 Aug 2007, Mathieu Desnoyers wrote: > > > - Changed smp_rmb() for barrier(). We are not interested in read order > > across cpus, what we want is to be ordered wrt local interrupts only. > > barrier() is much cheaper than

Re: [RFC][PATCH 0/2 -mm] kexec based hibernation

2007-08-26 Thread Vivek Goyal
On Mon, Aug 27, 2007 at 02:18:49PM +0800, Huang, Ying wrote: [..] > > > > If one compiles the kernel C to boot from reserved memory area (subset > > of memory area used by kernel B), then I can skip the step of kexecing > > from C to D? (COFIG_PHYSICAL_START) > > Yes. I think so. > > > Alternat

<    1   2