[PATCH] JBD2/Ext4: Convert kmalloc to kzalloc in jbd2/ext4

2007-10-03 Thread Theodore Ts'o
From: Mingming Cao <[EMAIL PROTECTED]> Convert kmalloc to kzalloc() and get rid of the memset(). Signed-off-by: Mingming Cao <[EMAIL PROTECTED]> --- fs/ext4/xattr.c |3 +-- fs/jbd2/journal.c |3 +-- fs/jbd2/transaction.c |3 +-- 3 files changed, 3 insertions(+), 6

[PATCH] jbd/jbd2: Journal initialization doesn't need __GFP_NOFAIL

2007-10-03 Thread Theodore Ts'o
From: Aneesh Kumar K.V <[EMAIL PROTECTED]> Signed-off-by: Mingming Cao <[EMAIL PROTECTED]> Signed-off-by: "Theodore Ts'o" <[EMAIL PROTECTED]> --- fs/jbd/journal.c |2 +- fs/jbd2/journal.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/jbd/journal.c

Re: Network slowdown due to CFS

2007-10-03 Thread Casey Dahlin
Ingo Molnar wrote: * Jarek Poplawski <[EMAIL PROTECTED]> wrote: [...] (Btw, in -rc8-mm2 I see new sched_slice() function which seems to return... time.) wrong again. That is a function, not a variable to be cleared. It still gives us a target time, so could we not simply have

Re: sata_sil24 broken since 2.6.23-rc4-mm1

2007-10-03 Thread Torsten Kaiser
On 10/3/07, Matt Mackall <[EMAIL PROTECTED]> wrote: > Well I can see no reason why the vma we just got to by the mm->mmap > would have a vm_mm != mm, but I've certainly been wrong before. > > Try changing it to: > > for (vma = mm->mmap; vma; vma = vma->vm_next) > if

[rfc][patch 2/3] x86: fix IO write barriers

2007-10-03 Thread Nick Piggin
wmb() on x86 must always include a barrier, because stores can go out of order in many cases when dealing with devices (eg. WC memory). Signed-off-by: Nick Piggin <[EMAIL PROTECTED]> Index: linux-2.6/include/asm-i386/system.h ===

[rfc][patch 3/3] x86: optimise barriers

2007-10-03 Thread Nick Piggin
According to latest memory ordering specification documents from Intel and AMD, both manufacturers are committed to in-order loads from cacheable memory for the x86 architecture. Hence, smp_rmb() may be a simple barrier. Also according to those documents, and according to existing practice in

[rfc][patch 1/3] x86_64: fence nontemproal stores

2007-10-03 Thread Nick Piggin
Hi, Here's a couple of patches to improve the memory barrier situation on x86. They probably aren't going upstream until after the x86 merge, however I'm posting them here for RFC, and in case anybody wants to backport into stable trees. --- movnt* instructions are not strongly ordered with

Re: + add-documentation-w1w1-masters-00-index.patch added to -mm tree

2007-10-03 Thread Randy Dunlap
Rob Landley wrote: + - The Maixm/Dallas Semiconductor DS2490 builds USB <-> W1 bridges. Maxim (2 times) That typo was cut and paste from the the "Description" section of both files. (Lines 18 and 13, respectively.) :( Attached is an updated version that spells it

Re: [PATCH 5/5] writeback: introduce writeback_control.more_io to indicate more io

2007-10-03 Thread David Chinner
On Thu, Oct 04, 2007 at 10:21:33AM +0800, Fengguang Wu wrote: > On Wed, Oct 03, 2007 at 12:41:19PM +1000, David Chinner wrote: > > On Wed, Oct 03, 2007 at 09:34:39AM +0800, Fengguang Wu wrote: > > > On Wed, Oct 03, 2007 at 07:47:45AM +1000, David Chinner wrote: > > > > On Tue, Oct 02, 2007 at

Re: [14/18] Configure stack size

2007-10-03 Thread David Miller
From: Arjan van de Ven <[EMAIL PROTECTED]> Date: Wed, 3 Oct 2007 21:36:31 -0700 > there is still code that does DMA from and to the stack > how would this work with virtual allocated stack? That's a bug and must be fixed. There honestly shouldn't be that many examples around. FWIW, there

Re: [14/18] Configure stack size

2007-10-03 Thread Arjan van de Ven
On Wed, 03 Oct 2007 20:59:49 -0700 Christoph Lameter <[EMAIL PROTECTED]> wrote: > Make the stack size configurable now that we can fallback to vmalloc > if necessary. SGI NUMA configurations may need more stack because > cpumasks and nodemasks are at times kept on the stack. With the > coming 16k

[PATCH 2/3] Sysace: sparse fixes

2007-10-03 Thread Grant Likely
From: Grant Likely <[EMAIL PROTECTED]> Signed-off-by: Grant Likely <[EMAIL PROTECTED]> --- drivers/block/xsysace.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/block/xsysace.c b/drivers/block/xsysace.c index 3847464..5b73471 100644 ---

Re: Memory controller merge (was Re: -mm merge plans for 2.6.24)

2007-10-03 Thread Balbir Singh
Hugh Dickins wrote: > On Wed, 3 Oct 2007, Balbir Singh wrote: >> Hugh Dickins wrote: >>> Sorry, Balbir, I've failed to get back to you, still attending to >>> priorities. Let me briefly summarize my issue with the mem controller: >>> you've not yet given enough attention to swap. >> I am open to

[PATCH 3/3] Sysace: Don't enable IRQ until after interrupt handler is registered

2007-10-03 Thread Grant Likely
From: Grant Likely <[EMAIL PROTECTED]> The previous patch to move the interrupt handler registration moved it below enabling interrupts which could be a problem if the device is on a shared interrupt line. This patch fixes the order. Signed-off-by: Grant Likely <[EMAIL PROTECTED]> ---

[PATCH 1/3] Sysace: Minor coding convention fixup

2007-10-03 Thread Grant Likely
From: Grant Likely <[EMAIL PROTECTED]> Put function call and return code test on separate lines. Signed-off-by: Grant Likely <[EMAIL PROTECTED]> --- drivers/block/xsysace.c |9 ++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/block/xsysace.c

[15/18] Fallback for temporary order 2 allocation

2007-10-03 Thread Christoph Lameter
The cryto subsystem needs an order 2 allocation. This is a temporary buffer for xoring data so we can safely allow fallback. Cc: Dan Williams <[EMAIL PROTECTED]> Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> --- crypto/xor.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH 0/3] Fixups to SystemACE driver

2007-10-03 Thread Grant Likely
Jens, Here are some more Sysace patches based on comments received on the first series and a run through sparse. Can you please queue them up for 2.6.24? Thanks, g. -- Grant Likely, B.Sc. P.Eng. Secret Lab Technologies Ltd. - To unsubscribe from this list: send the line "unsubscribe

[11/18] Page allocator: Use a higher order allocation for the zone wait table.

2007-10-03 Thread Christoph Lameter
Currently vmalloc is used for the zone wait table. Therefore the vmalloc page tables have to be consulted by the MMU to access the wait table. We can now use GFP_VFALLBACK to attempt the use of a physically contiguous page that can then use the large kernel TLBs. Drawback: The zone wait table is

[18/18] SLUB: Use fallback for table of callers/freers of a slab cache

2007-10-03 Thread Christoph Lameter
The caller table can get quite large if there are many call sites for a particular slab. Add GFP_FALLBACK allows falling back to vmalloc in case the caller table gets too big and memory is fragmented. Currently we would fail the operation. Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> ---

[12/18] Wait: Allow bit_waitqueue to wait on a bit in a virtual compound page

2007-10-03 Thread Christoph Lameter
If bit waitqueue is passed a virtual address then it must use virt_to_head_page instead of virt_to_page. Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> --- kernel/wait.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6/kernel/wait.c

[16/18] Virtual Compound page allocation from interrupt context.

2007-10-03 Thread Christoph Lameter
In an interrupt context we cannot wait for the vmlist_lock in __get_vm_area_node(). So use a trylock instead. If the trylock fails then the atomic allocation will fail and subsequently be retried. This only works because the flush_cache_vunmap in use for allocation is never performing any IPIs in

[17/18] Virtual compound page freeing in interrupt context

2007-10-03 Thread Christoph Lameter
If we are in an interrupt context then simply defer the free via a workqueue. Removing a virtual mappping *must* be done with interrupts enabled since tlb_xx functions are called that rely on interrupts for processor to processor communications. Signed-off-by: Christoph Lameter <[EMAIL

[09/18] Vcompound: GFP_VFALLBACK debugging aid

2007-10-03 Thread Christoph Lameter
Virtual fallbacks are rare and thus subtle bugs may creep in if we do not test the fallbacks. CONFIG_VFALLBACK_ALWAYS makes all GFP_VFALLBACK allocations fall back to virtual mapping. Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> --- lib/Kconfig.debug | 11 +++ mm/page_alloc.c

[10/18] Sparsemem: Use fallback for the memmap.

2007-10-03 Thread Christoph Lameter
Sparsemem currently attempts first to do a physically contiguous mapping and then falls back to vmalloc. The same thing can now be accomplished using GFP_VFALLBACK. Cc: [EMAIL PROTECTED] Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> --- mm/sparse.c | 33

[13/18] x86_64: Allow fallback for the stack

2007-10-03 Thread Christoph Lameter
Peter Zijlstra has recently demonstrated that we can have order 1 allocation failures under memory pressure with small memory configurations. The x86_64 stack has a size of 8k and thus requires a order 1 allocation. This patch adds a virtual fallback capability for the stack. The system may

[14/18] Configure stack size

2007-10-03 Thread Christoph Lameter
Make the stack size configurable now that we can fallback to vmalloc if necessary. SGI NUMA configurations may need more stack because cpumasks and nodemasks are at times kept on the stack. With the coming 16k cpu support this is going to be 2k just for the mask. This patch allows to run with 16k

[06/18] Vcompound: Update page address determination

2007-10-03 Thread Christoph Lameter
Make page_address() correctly determine the address of a potentially virtually mapped compound page. There are 3 cases to consider: 1. !HASHED_PAGE_VIRTUAL && !WANT_PAGE_VIRTUAL Call vmalloc_address() directly from the page_address function defined in mm.h. 2. HASHED_PAGE_VIRTUAL Modify

[08/18] GFP_VFALLBACK: Allow fallback of compound pages to virtual mappings

2007-10-03 Thread Christoph Lameter
Add a new gfp flag __GFP_VFALLBACK If specified during a higher order allocation then the system will fall back to vmap if no physically contiguous pages can be found. This will create a virtually contiguous area instead of a physically contiguous area. In many cases the virtually

[04/18] Vcompound: Smart up virt_to_head_page()

2007-10-03 Thread Christoph Lameter
The determination of a page struct for an address in a compound page will need some more smarts in order to deal with virtual addresses. We need to use the evil constants VMALLOC_START and VMALLOC_END for this and they are notoriously for referencing various arch header files or may even be

[07/18] Vcompound: Add compound_nth_page() to determine nth base page

2007-10-03 Thread Christoph Lameter
Add a new function compound_nth_page(page, n) and vmalloc_nth_page(page, n) to find the nth page of a compound page. For real compound pages his simply reduces to page + n. For virtual compound pages we need to consult the page tables to figure out the nth page from the one

[02/18] vunmap: return page array passed on vmap()

2007-10-03 Thread Christoph Lameter
Make vunmap return the page array that was used at vmap. This is useful if one has no structures to track the page array but simply stores the virtual address somewhere. The disposition of the page array can be decided upon after vunmap. vfree() may now also be used instead of vunmap which will

[03/18] vmalloc_address(): Determine vmalloc address from page struct

2007-10-03 Thread Christoph Lameter
Sometimes we need to figure out which vmalloc address is in use for a certain page struct. There is no easy way to figure out the vmalloc address from the page struct. Simply search through the kernel page tables to find the address. Use sparingly. Signed-off-by: Christoph Lameter <[EMAIL

[05/18] Page flags: Add PageVcompound()

2007-10-03 Thread Christoph Lameter
Add a another page flag that can be used to figure out if a compound page is virtually mapped. The mark is necessary since we have to know when freeing pages if we have to destroy a virtual mapping. No additional flag is consumed through the use of PG_swapcache together with PG_compound (similar

[00/18] Virtual Compound Page Support V2

2007-10-03 Thread Christoph Lameter
Allocations of larger pages are not reliable in Linux. If larger pages have to be allocated then one faces various choices of allowing graceful fallback or using vmalloc with a performance penalty due to the use of a page table. Virtual Compound pages are a simple solution out of this dilemma. If

[01/18] vmalloc: clean up page array indexing

2007-10-03 Thread Christoph Lameter
The page array is repeatedly indexed both in vunmap and vmalloc_area_node(). Add a temporary variable to make it easier to read (and easier to patch later). Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> --- mm/vmalloc.c | 16 +++- 1 file changed, 11 insertions(+), 5

Re: MSI problem since 2.6.21 for devices not providing a mask in their MSI capability

2007-10-03 Thread Eric W. Biederman
Loic Prylli <[EMAIL PROTECTED]> writes: > Even if the INTx line is not raised, you cannot rely on the device to > retain memory of a interrupt triggered while MSI are disabled, and > expect it to fire it under MSI form later when MSI are reenabled. Sure. My expectation is if we happened to hit

Re: File corruption when using kernels 2.6.18+

2007-10-03 Thread Linus Torvalds
On Wed, 3 Oct 2007, Robert Hancock wrote: > > Erratum 97: 128-Bit Streaming Stores May Cause Coherency Failure The Intel-optimized memcpy doesn't use the SSE registers, just regular 32-bit integer nontemporal stores (movnti). The reason is that the SSE state save is too expensive to be worth

Re: [patch take 2][Intel-IOMMU] Fix for IOMMU early crash

2007-10-03 Thread Benjamin Herrenschmidt
> > Why don't you use the new struct dev_archdata mechanism ? That's what I > > use on powerpc to provide optional iommu linkage to any device in the > > system. > Good one. I will certainly try out your idea and will update the list > tomorrow. The advantage is that it allows to completely

Re: File corruption when using kernels 2.6.18+

2007-10-03 Thread Robert Hancock
Linus Torvalds wrote: On Wed, 3 Oct 2007, Pekka Enberg wrote: On 10/3/07, Linus Torvalds <[EMAIL PROTECTED]> wrote: I would bet that the reason the intel-optimized memcpy triggers this is that the non-temporal stores just means that you go out directly on the bus, and it probably just shows a

Re: [PATCH 03/33] task containersv11 add tasks file interface

2007-10-03 Thread Paul Jackson
One more cgroup code review detail ... The following is evidence of some more stale comments in kernel/cpuset.c. Some routines which used to be in that file, but which are now reimplemented in cgroups, are still named in cpuset.c comments: $ grep -E 'cpuset_rmdir|cpuset_exit|cpuset_fork'

Re: [PATCH 03/33] task containersv11 add tasks file interface

2007-10-03 Thread Paul Menage
On 10/3/07, Paul Jackson <[EMAIL PROTECTED]> wrote: > > I can't say for sure, but I suspect that if cgroups had always > been cgroups (short for control groups), then these local 'cont' > variables would have a different name. Oh, absolutely. I just refrained from changing them in the rename

Re: [PATCH 03/33] task containersv11 add tasks file interface

2007-10-03 Thread Paul Jackson
> > - There are many instances of the local variable 'cont', referring > >to a struct cgroup pointer. I presume the spelling 'cont' is a > >holdover from the time when we called these containers. > > Yes, and since cgroup is short for "control group", "cont" still > seemed like a

[PATCH] Code style fix for open_exec

2007-10-03 Thread Casey Dahlin
From d2a6c5d29dc34cfea892124ab72b4eb55d2f8a80 Mon Sep 17 00:00:00 2001 From: Casey Dahlin <[EMAIL PROTECTED]> Date: Wed, 3 Oct 2007 22:01:49 -0400 Subject: [PATCH] Code style fix for open_exec Fix a horribly mangled 5 level indent and severe abuse of goto in the open_exec function.

Re: [PATCH 5/5] writeback: introduce writeback_control.more_io to indicate more io

2007-10-03 Thread Fengguang Wu
On Wed, Oct 03, 2007 at 12:41:19PM +1000, David Chinner wrote: > On Wed, Oct 03, 2007 at 09:34:39AM +0800, Fengguang Wu wrote: > > On Wed, Oct 03, 2007 at 07:47:45AM +1000, David Chinner wrote: > > > On Tue, Oct 02, 2007 at 04:41:48PM +0800, Fengguang Wu wrote: > > > >

Re: Serial ATA does not find partitions (Hitachi HD, new? ATI controller) where old SATA works

2007-10-03 Thread Tejun Heo
Hernan G Solari wrote: >>> netconsole, pritty nice debunging system... but (yes, there is always >>> a but) it does not get to run. >>> the method was well implemented, adding the acpi=off it sends the >>> information to the receiving machine (I can even see passing a >>> netconsole probing

Re: Point of gpl-only modules (flame)

2007-10-03 Thread Robert Hancock
Jimmy wrote: I know I'll be getting hell for this, I must be a masochist. Anyway, I've been trying to figure out what purpose the gpl-only code serves. What good comes out of disabling people from probing modules that do not have a gpl-compatible license? Who is disabling anything? Of

Re: [Patch / 002](memory hotplug) Callback function to create kmem_cache_node.

2007-10-03 Thread Yasunori Goto
> On Wed, 3 Oct 2007, Yasunori Goto wrote: > > > > > > > That would work. But it would be better to shrink the cache first. The > > > first 2 slabs on a node may be empty and the shrinking will remove those. > > > If you do not shrink then the code may falsely assume that there are > > >

Re: [PATCH] writeback: avoid possible balance_dirty_pages() lockup on a light-load bdi

2007-10-03 Thread Fengguang Wu
On Wed, Oct 03, 2007 at 01:46:52PM +0100, richard kennedy wrote: > On Tue, 2007-10-02 at 10:00 +0800, Fengguang Wu wrote: > > --- > > mm/page-writeback.c |5 + > > 1 file changed, 5 insertions(+) > > > > --- linux-2.6.22.orig/mm/page-writeback.c > > +++ linux-2.6.22/mm/page-writeback.c >

Re: + add-documentation-w1w1-masters-00-index.patch added to -mm tree

2007-10-03 Thread Rob Landley
On Wednesday 03 October 2007 4:38:49 pm Randy Dunlap wrote: > On Wed, 03 Oct 2007 14:17:33 -0700 [EMAIL PROTECTED] wrote: > > The patch titled > > Add Documentation/{w1,w1/masters}/00-INDEX > > has been added to the -mm tree. Its filename is > >

Re: File corruption when using kernels 2.6.18+

2007-10-03 Thread Hiro Yoshioka
Hi, From: Linus Torvalds <[EMAIL PROTECTED]> > On Wed, 3 Oct 2007, Pekka Enberg wrote: > > > > On 10/3/07, Linus Torvalds <[EMAIL PROTECTED]> wrote: > > > I would bet that the reason the intel-optimized memcpy triggers this is > > > that the non-temporal stores just means that you go out

Re: MSI problem since 2.6.21 for devices not providing a mask in their MSI capability

2007-10-03 Thread Loic Prylli
On 10/3/2007 5:49 PM, Eric W. Biederman wrote: > Loic Prylli <[EMAIL PROTECTED]> writes: > > >> Hi, >> >> We observe a problem with MSI since kernel 2.6.21 where interrupts would >> randomly stop working. We have tracked it down to the new >> msi_set_mask_bit definition in 2.6.21. In the MSI

Re: [patch take 2][Intel-IOMMU] Fix for IOMMU early crash

2007-10-03 Thread Keshavamurthy, Anil S
On Thu, Oct 04, 2007 at 11:19:33AM +1000, Benjamin Herrenschmidt wrote: > > Index: 2.6-mm/include/linux/pci.h > > === > > --- 2.6-mm.orig/include/linux/pci.h 2007-10-03 13:48:20.0 -0700 > > +++ 2.6-mm/include/linux/pci.h

Re: [patch take 2][Intel-IOMMU] Fix for IOMMU early crash

2007-10-03 Thread Benjamin Herrenschmidt
> Index: 2.6-mm/include/linux/pci.h > === > --- 2.6-mm.orig/include/linux/pci.h 2007-10-03 13:48:20.0 -0700 > +++ 2.6-mm/include/linux/pci.h2007-10-03 13:49:08.0 -0700 > @@ -195,6 +195,7 @@ > #ifdef

Re: [PATCH] Version 4 (2.6.23-rc8-mm2) Smack: Simplified Mandatory Access Control Kernel

2007-10-03 Thread Casey Schaufler
--- Al Viro <[EMAIL PROTECTED]> wrote: > On Wed, Oct 03, 2007 at 03:23:15PM -0700, Casey Schaufler wrote: > > 1. Create /moldy at "_" > > 2. For each label you care about > >2a. Create /moldy/ > >2b. Set the label of /moldy/ to > > 3. ln -s /smack/tmp /tmp > > > 1. Create /moldy at "_"

RE: Network slowdown due to CFS

2007-10-03 Thread Rusty Russell
On Mon, 2007-10-01 at 09:49 -0700, David Schwartz wrote: > > * Jarek Poplawski <[EMAIL PROTECTED]> wrote: > > > > > BTW, it looks like risky to criticise sched_yield too much: some > > > people can misinterpret such discussions and stop using this at all, > > > even where it's right. > > >

Re: [PATCH 5/5] lguest: loading bzImage directly

2007-10-03 Thread H. Peter Anvin
Rusty Russell wrote: On Wed, 2007-10-03 at 10:37 +0100, Chris Malley wrote: Hi guys Would it not be clearer to #include and use the relevant named members of struct setup_header / struct boot_params rather than the hard-coded values 0x202, 0x1F1, 0x214 ? Yes, but unfortunately bootparam.h

Re: [PATCH 5/5] lguest: loading bzImage directly

2007-10-03 Thread Rusty Russell
On Wed, 2007-10-03 at 10:37 +0100, Chris Malley wrote: > Hi guys > > Would it not be clearer to #include and use > the relevant named members of struct setup_header / struct boot_params > rather than the hard-coded values 0x202, 0x1F1, 0x214 ? Yes, but unfortunately bootparam.h wasn't designed

Re: What's slated for inclusion in 2.6.24-rc1 from the NFS client git tree...

2007-10-03 Thread Jeff Garzik
Trond Myklebust wrote: Aside from the usual updates from Chuck for NFS-over-IPv6 (still incomplete) and a number of bugfixes for the text-based mount code, the main news in the NFS tree is the merging of support for the NFS/RDMA client code from Tom Talpey and the NetApp New England (NANE) team.

Re: [patch] fix the softlockup watchdog to actually work

2007-10-03 Thread Yinghai Lu
On 7/17/07, Ingo Molnar <[EMAIL PROTECTED]> wrote: > > * Jeremy Fitzhardinge <[EMAIL PROTECTED]> wrote: > > > Ingo Molnar wrote: > > > Subject: softlockup: fix Xen bogosity > > > From: Ingo Molnar <[EMAIL PROTECTED]> > > > > > > this Xen related commit: > > > > > > > Well, not just Xen. It

RE: 2.6.23-rc9 boot failure (megaraid?)

2007-10-03 Thread FUJITA Tomonori
On Wed, 3 Oct 2007 17:32:55 -0600 "Patro, Sumant" <[EMAIL PROTECTED]> wrote: > > > > -Original Message- > > From: FUJITA Tomonori [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, October 02, 2007 5:01 PM > > To: [EMAIL PROTECTED] > > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; > >

What's slated for inclusion in 2.6.24-rc1 from the NFS client git tree...

2007-10-03 Thread Trond Myklebust
Aside from the usual updates from Chuck for NFS-over-IPv6 (still incomplete) and a number of bugfixes for the text-based mount code, the main news in the NFS tree is the merging of support for the NFS/RDMA client code from Tom Talpey and the NetApp New England (NANE) team. We also have the 64-bit

Re: [PATCH] net: fix race in process_backlog

2007-10-03 Thread David Miller
From: Stephen Hemminger <[EMAIL PROTECTED]> Date: Wed, 3 Oct 2007 15:05:19 -0700 > On Wed, 03 Oct 2007 14:58:07 -0700 (PDT) > David Miller <[EMAIL PROTECTED]> wrote: > > > From: Peter Zijlstra <[EMAIL PROTECTED]> > > Date: Wed, 03 Oct 2007 17:44:53 +0200 > > > > > Index:

RE: 2.6.23-rc9 boot failure (megaraid?)

2007-10-03 Thread Patro, Sumant
> -Original Message- > From: FUJITA Tomonori [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 02, 2007 5:01 PM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; > linux-kernel@vger.kernel.org; [EMAIL PROTECTED]; > [EMAIL PROTECTED]; Patro, Sumant; DL-MegaRAID >

Re: Decreasing stime running confuses top (was: top displaying 9999% CPU usage)

2007-10-03 Thread Frans Pop
On Wednesday 03 October 2007, you wrote: > On Wed, Oct 03, 2007 at 09:27:41PM +0200, Frans Pop wrote: > > On Wednesday 03 October 2007, you wrote: > > > On Wed, 3 Oct 2007, Ilpo Järvinen wrote: > > > > On Wed, 3 Oct 2007, Frans Pop wrote: > > > > > The only change is in 2 consecutive columns:

Re: [PATCH 2/2 -mm] capabilities: introduce per-process capability bounding set (v4)

2007-10-03 Thread James Morris
On Wed, 3 Oct 2007, Serge E. Hallyn wrote: > > Signed-off-by: Serge Hallyn <[EMAIL PROTECTED]> Acked-by: James Morris <[EMAIL PROTECTED]> -- James Morris <[EMAIL PROTECTED]> - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL

Re: [PATCH] Version 4 (2.6.23-rc8-mm2) Smack: Simplified Mandatory Access Control Kernel

2007-10-03 Thread Al Viro
On Wed, Oct 03, 2007 at 03:23:15PM -0700, Casey Schaufler wrote: > 1. Create /moldy at "_" > 2. For each label you care about >2a. Create /moldy/ >2b. Set the label of /moldy/ to > 3. ln -s /smack/tmp /tmp > 1. Create /moldy at "_" > 2. For each label you care about >2a. Create

Re: [PATCH] Fix blktrace setup 32-bit ioctl on 64-bit kernels

2007-10-03 Thread Arnd Bergmann
On Wednesday 03 October 2007, Arnd Bergmann wrote: > Jens, I think the best overall solution would be to have a > block/compat_ioctl.c file with all the compat handling for block > devices moved over from fs/compat_ioctl.c, and done in a nicer way. > If you agree, with this approach, I'd volunteer

Re: [PATCH 1/2 -mm] capabilities: define CONFIG_COMMONCAP

2007-10-03 Thread James Morris
On Wed, 3 Oct 2007, Serge E. Hallyn wrote: > >From 54c70ca7671750fe8986451fae91d42107d0ca90 Mon Sep 17 00:00:00 2001 > From: Serge E. Hallyn <[EMAIL PROTECTED]> > Date: Fri, 28 Sep 2007 10:33:33 -0500 > Subject: [PATCH 1/2 -mm] capabilities: define CONFIG_COMMONCAP > > currently the compilation

Re: + add-documentation-w1w1-masters-00-index.patch added to -mm tree

2007-10-03 Thread Randy Dunlap
On Wed, 03 Oct 2007 14:17:33 -0700 [EMAIL PROTECTED] wrote: > > The patch titled > Add Documentation/{w1,w1/masters}/00-INDEX > has been added to the -mm tree. Its filename is > add-documentation-w1w1-masters-00-index.patch > > *** Remember to use Documentation/SubmitChecklist when

Re: [git patches] net driver updates

2007-10-03 Thread David Miller
From: Jeff Garzik <[EMAIL PROTECTED]> Date: Wed, 3 Oct 2007 14:39:16 -0400 > > Normally I wait a day or two between pushes, to queue up patches and > also to avoid annoying my upstream :) But this includes a couple fixes > I felt should be upstreamed sooner rather than later. > > Please pull

[PATCH 2/2 -mm] capabilities: introduce per-process capability bounding set (v4)

2007-10-03 Thread Serge E. Hallyn
>From d93ecb90d82f9e2b7f48c74f5e6ed97cac3683c7 Mon Sep 17 00:00:00 2001 From: Serge Hallyn <[EMAIL PROTECTED]> Date: Fri, 28 Sep 2007 10:33:56 -0500 Subject: [PATCH 2/2 -mm] capabilities: introduce per-process capability bounding set (v4) The capability bounding set is a set beyond which

[PATCH 1/2 -mm] capabilities: define CONFIG_COMMONCAP

2007-10-03 Thread Serge E. Hallyn
>From 54c70ca7671750fe8986451fae91d42107d0ca90 Mon Sep 17 00:00:00 2001 From: Serge E. Hallyn <[EMAIL PROTECTED]> Date: Fri, 28 Sep 2007 10:33:33 -0500 Subject: [PATCH 1/2 -mm] capabilities: define CONFIG_COMMONCAP currently the compilation of commoncap.c is determined through Makefile logic. So

Re: MSI problem since 2.6.21 for devices not providing a mask in their MSI capability

2007-10-03 Thread Eric W. Biederman
Benjamin Herrenschmidt <[EMAIL PROTECTED]> writes: > > Well, yes and no ... A valid option here would be to use soft-masking, > which is possible because MSIs are edge interrupts. That is, basically, > when masked, just ignore them and set IRQF_PENDING, and when unmasked, > replay (which can be

Re: [PATCH] Version 4 (2.6.23-rc8-mm2) Smack: Simplified Mandatory Access Control Kernel

2007-10-03 Thread Casey Schaufler
--- Al Viro <[EMAIL PROTECTED]> wrote: > On Wed, Oct 03, 2007 at 12:51:08PM -0700, Casey Schaufler wrote: > > > > Because you throw "simple" out the window when you require userland > > > > assistance to perform this function. > > > > > > Any more than having /tmp replaced with a symlink? > >

Re: [PATCH] usbhid: report descriptor fix for MacBook JIS keyboard

2007-10-03 Thread Jiri Kosina
On Thu, 4 Oct 2007, Tomoya Adachi wrote: > This patch fixes the problem, that Japanese MacBook doesn't recognize > some keys like '\'(yen, or backslash), '|'(pipe), and '_'(underscore). > It is due to that MacBook JIS keyboard (jp106) sends wrong report > descriptor. It saids "logical maximum

Re: [PATCH] net: fix race in process_backlog

2007-10-03 Thread Stephen Hemminger
On Wed, 03 Oct 2007 14:58:07 -0700 (PDT) David Miller <[EMAIL PROTECTED]> wrote: > From: Peter Zijlstra <[EMAIL PROTECTED]> > Date: Wed, 03 Oct 2007 17:44:53 +0200 > > > Index: linux-2.6/net/core/dev.c > > === > > ---

Re: MSI problem since 2.6.21 for devices not providing a mask in their MSI capability

2007-10-03 Thread Benjamin Herrenschmidt
> We should also be leaving the INTx irqs disabled. So no irq > should be generated. > > If you have a mask bit implemented you are required to be > able to refire it after the msi is enabled. I don't recall > the requirements for when both intx and msi irqs are both > disabled. Intuitively I

Re: [PATCH] net: fix race in process_backlog

2007-10-03 Thread David Miller
From: Peter Zijlstra <[EMAIL PROTECTED]> Date: Wed, 03 Oct 2007 17:44:53 +0200 > Index: linux-2.6/net/core/dev.c > === > --- linux-2.6.orig/net/core/dev.c > +++ linux-2.6/net/core/dev.c > @@ -2095,11 +2095,11 @@ static int

[PATCH] usbhid: report descriptor fix for MacBook JIS keyboard

2007-10-03 Thread Tomoya Adachi
From: Tomoya Adachi <[EMAIL PROTECTED]> This patch fixes the problem, that Japanese MacBook doesn't recognize some keys like '\'(yen, or backslash), '|'(pipe), and '_'(underscore). It is due to that MacBook JIS keyboard (jp106) sends wrong report descriptor. It saids "logical maximum = 0x65", so

Re: MSI problem since 2.6.21 for devices not providing a mask in their MSI capability

2007-10-03 Thread Eric W. Biederman
Loic Prylli <[EMAIL PROTECTED]> writes: > Hi, > > We observe a problem with MSI since kernel 2.6.21 where interrupts would > randomly stop working. We have tracked it down to the new > msi_set_mask_bit definition in 2.6.21. In the MSI case with a device not > providing a "native" MSI mask, it was

Re: [PATCH 3/8] scsi: megaraid_sas - add module param max_sectors, cmd_per_lun

2007-10-03 Thread Randy Dunlap
On Mon, 01 Oct 2007 11:51:48 -0400 bo yang wrote: > Adding module parameters to configure max sectors per request & # of cmds per > lun. > > Signed-off-by: Bo Yang <[EMAIL PROTECTED]> > > --- > drivers/scsi/megaraid/megaraid_sas.c | 68 - >

[PATCH] hugetlb: Fix pool resizing corner case V2

2007-10-03 Thread Adam Litke
Changes in V2: - Removed now unnecessary check as suggested by Ken Chen When shrinking the size of the hugetlb pool via the nr_hugepages sysctl, we are careful to keep enough pages around to satisfy reservations. But the calculation is flawed for the following scenario: Action

Re: [-mm patch] unexport noautodma

2007-10-03 Thread Bartlomiej Zolnierkiewicz
On Sunday 09 September 2007, Adrian Bunk wrote: > noautodma can now be unexported. > > Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]> applied - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at

Re: pgd_none_or_clear_bad strangeness?

2007-10-03 Thread Matt Mackall
On Wed, Oct 03, 2007 at 07:18:23PM +0100, Hugh Dickins wrote: > On Wed, 3 Oct 2007, Nick Piggin wrote: > > On Tue, Oct 02, 2007 at 05:20:03PM -0500, Matt Mackall wrote: > > > In lib/pagewalk.c, I've been using the various forms of > > > {pgd,pud,pmd}_none_or_clear_bad while walking page tables as

Re: [PATCH -mm] IrCOMM discovery indication simplification

2007-10-03 Thread Andrew Morton
On Mon, 1 Oct 2007 02:29:51 +0300 Samuel Ortiz <[EMAIL PROTECTED]> wrote: > Hi Andrew, > > Every IrCOMM socket is registered with the discovery subsystem, so we don't > need to loop over all of them for every discovery event. We just need to > do it for the registered IrCOMM socket. > > Would

Re: [PATCH -mm] intel-iommu sg chaining support

2007-10-03 Thread Keshavamurthy, Anil S
On Wed, Oct 03, 2007 at 02:12:03PM -0700, Andrew Morton wrote: > On Mon, 1 Oct 2007 09:12:56 -0700 > "Keshavamurthy, Anil S" <[EMAIL PROTECTED]> wrote: > > > On Sat, Sep 29, 2007 at 05:16:38AM -0700, FUJITA Tomonori wrote: > > > > > >x86_64 defines ARCH_HAS_SG_CHAIN. So if IOMMU

[patch take 2][Intel-IOMMU] Fix for IOMMU early crash

2007-10-03 Thread Keshavamurthy, Anil S
Subject: [patch][Intel-IOMMU] Fix for IOMMU early crash pci_dev's->sysdata is highly overloaded and currently IOMMU is broken due to IOMMU code depending on this field. This patch introduces new field in pci_dev's struct to hold IOMMU specific per device IOMMU private data. Signed-off-by: Anil

Re: 2.6.23-rc7-mm1 AHCI ATA errors -- won't boot

2007-10-03 Thread Jeff Garzik
Berck E. Nash wrote: Greetings, I get a few million of these on boot-- the system never actually boots. Works fine in 2.6.23-rc7. [ 50.456012] ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0 [ 50.462484] ata2.00: irq_stat 0x4001 [ 50.466441] ata2.00: cmd

[ANNOUNCE] GIT 1.5.3.4

2007-10-03 Thread Junio C Hamano
The latest maintenance release GIT 1.5.3.4 is available at the usual places: http://www.kernel.org/pub/software/scm/git/ git-1.5.3.4.tar.{gz,bz2} (tarball) git-htmldocs-1.5.3.4.tar.{gz,bz2} (preformatted docs) git-manpages-1.5.3.4.tar.{gz,bz2}

Re: [PATCH -mm] intel-iommu sg chaining support

2007-10-03 Thread Andrew Morton
On Mon, 1 Oct 2007 09:12:56 -0700 "Keshavamurthy, Anil S" <[EMAIL PROTECTED]> wrote: > On Sat, Sep 29, 2007 at 05:16:38AM -0700, FUJITA Tomonori wrote: > > > >x86_64 defines ARCH_HAS_SG_CHAIN. So if IOMMU implementations don't > >support sg chaining, we will get data corruption. > >

MSI problem since 2.6.21 for devices not providing a mask in their MSI capability

2007-10-03 Thread Loic Prylli
Hi, We observe a problem with MSI since kernel 2.6.21 where interrupts would randomly stop working. We have tracked it down to the new msi_set_mask_bit definition in 2.6.21. In the MSI case with a device not providing a "native" MSI mask, it was a no-op before, and now it disables MSI in the

Re: [PATCH] Version 4 (2.6.23-rc8-mm2) Smack: Simplified Mandatory Access Control Kernel

2007-10-03 Thread Casey Schaufler
--- Alan Cox <[EMAIL PROTECTED]> wrote: > > An embedded system that does not have user logins but that does > > have applications that require separation, perhaps a moble communication > > device with application download capability, is just one example > > where the smack symlink implementation

Re: [Samba] 2.6.22/realtek bug in hardware, any kernel work-around?

2007-10-03 Thread Francois Romieu
Justin Piszcz <[EMAIL PROTECTED]> : [...] The bug is fixed in 2.6.23-rc9. Try it. -- Ueimor - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the

[PATCH 8/8] scsi: megaraid_sas - Update version and changelog

2007-10-03 Thread bo yang
Update version and changelog. Updated "LSI Logic" to new name "LSI" Signed-off-by: Bo Yang <[EMAIL PROTECTED]> --- Documentation/scsi/ChangeLog.megaraid_sas | 160 drivers/scsi/megaraid/megaraid_sas.c | 10 - drivers/scsi/megaraid/megaraid_sas.h |8 - 3

[PATCH] RCU torture update for preemption

2007-10-03 Thread Steven Rostedt
Paul, I ran your original preemption test of RCU torture, and after several minutes, my preempt boost patch had one Preemption stall. I then disabled preemption boosting, and ran the preempt torture again, and it seemed to never stall. Something seemed strange, so I took a look. Looks like you

[PATCH 7/8] scsi: megaraid_sas - support for poll_mode_io (reduced interrupt)

2007-10-03 Thread bo yang
Added module parameter "poll_mode_io" to support for "polling" (reduced interrupt operation). In this mode, IO completion interrupts are delayed. At the end of initiating IOs, the driver schedules for cmd completion if there are pending cmds. A timer-based interrupt

Re: [PATCH] task containersv11 add tasks file interface fix for cpusets

2007-10-03 Thread Paul Menage
On 10/3/07, Paul Jackson <[EMAIL PROTECTED]> wrote: > > But now (correct me if I'm wrong here) cgroups has a per-cgroup task > list, and the above loop has cost linear in the number of tasks > actually in the cgroup, plus (unfortunate but necessary and tolerable) > the cost of taking a global

Re: [PATCH] Version 4 (2.6.23-rc8-mm2) Smack: Simplified Mandatory Access Control Kernel

2007-10-03 Thread Al Viro
On Wed, Oct 03, 2007 at 12:51:08PM -0700, Casey Schaufler wrote: > > > Because you throw "simple" out the window when you require userland > > > assistance to perform this function. > > > > Any more than having /tmp replaced with a symlink? > > Yes. By the way, there's nothing that really

Re: [PATCH] task containersv11 add tasks file interface fix for cpusets

2007-10-03 Thread Paul Jackson
Andrew - please kill this patch. Looks like Paul Menage has a better solution that I will be trying out. -- I won't rest till it's the best ... Programmer, Linux Scalability Paul Jackson <[EMAIL PROTECTED]> 1.925.600.0401 - To unsubscribe

Re: [PATCH] task containersv11 add tasks file interface fix for cpusets

2007-10-03 Thread Paul Jackson
> What was wrong with my suggestion from a couple of emails back? Adding > the following in cpuset_attach(): > > struct cgroup_iter it; > struct task_struct *p; > while ((p = cgroup_iter_next(cs->css.cgroup, ))) { >set_cpus_allowed(p, cs->cpus_allowed); > } >

  1   2   3   4   5   6   7   8   >