Re: [PATCH 09/16] um: use get_personality()

2008-02-20 Thread Jeff Dike
On Wed, Feb 20, 2008 at 07:19:13PM +0800, WANG Cong wrote: > Signed-off-by: WANG Cong <[EMAIL PROTECTED]> Looks good - you should add some sort of changelog though. Jeff -- Work email - jdike at linux dot intel dot com -- To unsubscribe from this list: send the

Re: [RFC PATCH 3/8] [NET]: uninline dev_alloc_skb, de-bloats a lot

2008-02-20 Thread Patrick McHardy
Jan Engelhardt wrote: On Feb 20 2008 15:47, Ilpo Järvinen wrote: -23668 392 funcs, 104 +, 23772 -, diff: -23668 --- dev_alloc_skb -static inline struct sk_buff *dev_alloc_skb(unsigned int length) -{ - return __dev_alloc_skb(length, GFP_ATOMIC); -} +extern struct sk_buff

Re: [2.6 patch] make stk_camera_{suspend,resume}() static

2008-02-20 Thread Jaime Velasco Juan
El mar. 19 de feb. de 2008, a las 21:29:08 +0200, Adrian Bunk escribió: > This patch makes the needlessly global stk_camera_{suspend,resume}() > static. > > Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]> > Acked-by: Jaime Velasco Juan <[EMAIL PROTECTED]> thanks -- To unsubscribe from this

Re: [PATCH 0/2] percpu: Optimize percpu accesses v3

2008-02-20 Thread Thomas Gleixner
On Wed, 20 Feb 2008, Ingo Molnar wrote: > * Mike Travis <[EMAIL PROTECTED]> wrote: > > > This is the generic (non-x86) changes for zero-based per cpu > > variables. > > thanks Mike. I've put this into the -testing branch of x86.git. (so that > we can see and test the impact of these patches,

tty && pid problems

2008-02-20 Thread Oleg Nesterov
(Change the subject, cc Alan) On 02/19, [EMAIL PROTECTED] wrote: > > On Sun, 17 Feb 2008 21:11:14 MST, Eric W. Biederman said: > > Oleg Nesterov <[EMAIL PROTECTED]> writes: > > > On 02/16, Oleg Nesterov wrote: > > >> On 02/15, Andrew Morton wrote: > > >> > : BUG: unable to handle kernel paging

Re: [RFC PATCH 3/8] [NET]: uninline dev_alloc_skb, de-bloats a lot

2008-02-20 Thread Jan Engelhardt
On Feb 20 2008 15:47, Ilpo Järvinen wrote: > >-23668 392 funcs, 104 +, 23772 -, diff: -23668 --- dev_alloc_skb > >-static inline struct sk_buff *dev_alloc_skb(unsigned int length) >-{ >- return __dev_alloc_skb(length, GFP_ATOMIC); >-} >+extern struct sk_buff *dev_alloc_skb(unsigned int

Re: [PATCH] Document huge memory/cache overhead of memory controller in Kconfig

2008-02-20 Thread Balbir Singh
John Stoffel wrote: >> "Jan" == Jan Engelhardt <[EMAIL PROTECTED]> writes: > > Jan> On Feb 20 2008 20:50, Balbir Singh wrote: >>> John Stoffel wrote: I know this is a pedantic comment, but why the heck is it called such a generic term as "Memory Controller" which doesn't give any

Re: [PATCH] Document huge memory/cache overhead of memory controller in Kconfig

2008-02-20 Thread John Stoffel
> "Balbir" == Balbir Singh <[EMAIL PROTECTED]> writes: Balbir> John Stoffel wrote: >> I know this is a pedantic comment, but why the heck is it called such >> a generic term as "Memory Controller" which doesn't give any >> indication of what it does. >> >> Shouldn't it be something like

[PATCH] (for -mm only) put_pid: make sure we don't free the live pid

2008-02-20 Thread Oleg Nesterov
[PATCH] (for -mm only) put_pid: make sure we don't free the live pid Add the temporary (for -mm only) debugging code to catch the unbalanced put_pid()'s. At least those which can free the "live" pid. Signed-off-by: Oleg Nesterov <[EMAIL PROTECTED]> --- MM/kernel/pid.c~2008-02-20

Re: hdparm-8.2 now available

2008-02-20 Thread Mark Lord
Greg Freemyer wrote: Mark, What kernel level is needed to support the new -N arg? .. I believe it should work with 2.4.0 or newer. But some kernels have a buggy implementation of it. Tried it on a Suse 2.6.22 kernel (possibly not patched with all the current security updates). Failed with:

[PATCH 1/1] file capabilities: simplify signal check

2008-02-20 Thread Serge E. Hallyn
>From bd076c7245d02be0cc01b7c09bd7170ec5946492 Mon Sep 17 00:00:00 2001 From: Serge E. Hallyn <[EMAIL PROTECTED]> Date: Sun, 17 Feb 2008 20:28:07 -0500 Subject: [PATCH 1/1] file capabilities: simplify signal check Simplify the uid equivalence check in cap_task_kill(). Anyone can kill a process

Re: pci/pcie/aer/aerdrv_acpi.c: inconsequent NULL checking

2008-02-20 Thread Greg KH
On Wed, Feb 20, 2008 at 09:56:28AM +0200, Adrian Bunk wrote: > On Tue, Feb 19, 2008 at 09:47:58PM -0800, Greg KH wrote: > > On Tue, Feb 19, 2008 at 09:29:02PM +0200, Adrian Bunk wrote: > > > The Coverity checker spotted the following inconsequent NULL checking > > > introduced by commit

Re: [PATCH] Add PCI_DEVICE_TABLE macro

2008-02-20 Thread Greg KH
On Mon, Feb 18, 2008 at 08:34:42AM +0100, Jonas Bonn wrote: >> And again, what does this buy us? > > Clarity and simplicity, I hope... there are a bunch of definitions > scattered about the kernel that omit the __devinitdata modifier despite the > documentation stating that it should always be

Re: TG3 network data corruption regression 2.6.24/2.6.23.4

2008-02-20 Thread Tony Battersby
Matt Carlson wrote: > Hi Tony. Can you give us the output of : > > sudo lspci -vvv - -s 03:01.0' > 03:01.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5701 Gigabit Ethernet (rev 15) Subsystem: Compaq Computer Corporation NC7770 Gigabit Server Adapter (PCI-X,

Re: [Rt2400-devel] 2.6.25-rc2 regression in rt61pci wireless driver

2008-02-20 Thread Dan Williams
On Tue, 2008-02-19 at 23:04 +, Chris Vine wrote: > On Tue, 2008-02-19 at 20:46 +0100, Ivo van Doorn wrote: > > Hi, > > > > [added rt2400-devel (rt2x00 development mailinglist) to the CC list.] > > > > > > > > I have a series of tests I would like to request from you, > > > > > > you

Re: [PATCH] PM: Remove unbalanced mutex_unlock() from dpm_resume()

2008-02-20 Thread Alan Stern
On Wed, 20 Feb 2008, Rafael J. Wysocki wrote: > Hi Greg, > > Please consider taking the following fix for 2.6.25. Don't just consider it! :-) It's a real bug fix. > Thanks, > Rafael > > --- > From: Rafael J. Wysocki <[EMAIL PROTECTED]> > > Remove an unnecessary unlocking of dpm_list_mtx in

[PATCH 37/37] NFS: Add mount options to enable local caching on NFS

2008-02-20 Thread David Howells
Add NFS mount options to allow the local caching support to be enabled. The attached patch makes it possible for the NFS filesystem to be told to make use of the network filesystem local caching service (FS-Cache). To be able to use this, a recent nfsutils package is required. There are three

state of GEN_RTC vs rtc subsystem

2008-02-20 Thread Kumar Gala
Is the functionality provided by drivers/char/gen_rtc.c completely handled by the rtc subsystem in drivers/rtc? I ask for two reasons: 1. should we make it mutually exclusive in Kconfig 2. I've enabled both and get (we'll my defconfig did): proc_dir_entry 'rtc' already registered Call Trace:

[PATCH 15/37] CacheFiles: Add missing copy_page export for ia64

2008-02-20 Thread David Howells
This one-line patch fixes the missing export of copy_page introduced by the cachefile patches. This patch is not yet upstream, but is required for cachefile on ia64. It will be pushed upstream when cachefile goes upstream. Signed-off-by: Prarit Bhargava <[EMAIL PROTECTED]> Signed-off-by: David

[PATCH 32/37] NFS: Add read context retention for FS-Cache to call back with

2008-02-20 Thread David Howells
Add read context retention so that FS-Cache can call back into NFS when a read operation on the cache fails EIO rather than reading data. This permits NFS to then fetch the data from the server instead using the appropriate security context. Signed-off-by: David Howells <[EMAIL PROTECTED]> ---

[PATCH 30/37] NFS: Add some new I/O event counters for FS-Cache events

2008-02-20 Thread David Howells
Add some new NFS I/O event counters for FS-Cache events. They have to be added as byte counters because I may need to be able to increase the numbers by more than 1 at a time. Signed-off-by: David Howells <[EMAIL PROTECTED]> --- fs/nfs/iostat.h |7 +++ 1 files changed, 7 insertions(+),

Re: [PATCH] Document huge memory/cache overhead of memory controller in Kconfig

2008-02-20 Thread John Stoffel
> "Jan" == Jan Engelhardt <[EMAIL PROTECTED]> writes: Jan> On Feb 20 2008 20:50, Balbir Singh wrote: >> John Stoffel wrote: >>> I know this is a pedantic comment, but why the heck is it called such >>> a generic term as "Memory Controller" which doesn't give any >>> indication of what it

[PATCH 17/37] CacheFiles: Add a hook to write a single page of data to an inode

2008-02-20 Thread David Howells
Add an address space operation to write one single page of data to an inode at a page-aligned location (thus permitting the implementation to be highly optimised). The data source is a single page. This is used by CacheFiles to store the contents of netfs pages into their backing file pages.

[PATCH 31/37] NFS: FS-Cache page management

2008-02-20 Thread David Howells
FS-Cache page management for NFS. This includes hooking the releasing and invalidation of pages marked with PG_fscache (aka PG_private_2) and waiting for completion of the write-to-cache flag (PG_fscache_write aka PG_owner_priv_2). Signed-off-by: David Howells <[EMAIL PROTECTED]> ---

[PATCH 35/37] NFS: Store pages from an NFS inode into a local cache

2008-02-20 Thread David Howells
Store pages from an NFS inode into the cache data storage object associated with that inode. Signed-off-by: David Howells <[EMAIL PROTECTED]> --- fs/nfs/fscache.c | 26 ++ fs/nfs/fscache.h | 16 fs/nfs/read.c|5 + 3 files changed, 47

[PATCH 18/37] CacheFiles: Permit the page lock state to be monitored

2008-02-20 Thread David Howells
Add a function to install a monitor on the page lock waitqueue for a particular page, thus allowing the page being unlocked to be detected. This is used by CacheFiles to detect read completion on a page in the backing filesystem so that it can then copy the data to the waiting netfs page.

[PATCH 36/37] NFS: Display local caching state

2008-02-20 Thread David Howells
Display the local caching state in /proc/fs/nfsfs/volumes. Signed-off-by: David Howells <[EMAIL PROTECTED]> --- fs/nfs/client.c |7 --- fs/nfs/fscache.h | 15 +++ 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/fs/nfs/client.c b/fs/nfs/client.c index

[PATCH 34/37] NFS: Read pages from FS-Cache into an NFS inode

2008-02-20 Thread David Howells
Read pages from an FS-Cache data storage object representing an inode into an NFS inode. Signed-off-by: David Howells <[EMAIL PROTECTED]> --- fs/nfs/fscache.c | 112 ++ fs/nfs/fscache.h | 47 +++ fs/nfs/read.c| 18

[PATCH 33/37] NFS: nfs_readpage_async() needs to be accessible as a fallback for local caching

2008-02-20 Thread David Howells
nfs_readpage_async() needs to be non-static so that it can be used as a fallback for the local on-disk caching should an EIO crop up when reading the cache. Signed-off-by: David Howells <[EMAIL PROTECTED]> --- fs/nfs/read.c |4 ++-- include/linux/nfs_fs.h |2 ++ 2 files

Re: USB OOPS 2.6.25-rc2-git1

2008-02-20 Thread Alan Stern
On Tue, 19 Feb 2008, David Brownell wrote: > Please try that diagnostic patch I sent ... with CONFIG_USB_DEBUG. > > Near as I can tell this is caused by some hardware oddity that needs > to be worked around. We seem to be at stage where we've fixed some > problems, nudging code paths around so

[PATCH 25/37] NFS: Define and create server-level objects

2008-02-20 Thread David Howells
Define and create server-level cache index objects (as managed by nfs_client structs). Each server object is created in the NFS top-level index object and is itself an index into which superblock-level objects are inserted. Ideally there would be one superblock-level object per server, and the

[PATCH 29/37] NFS: Invalidate FsCache page flags when cache removed

2008-02-20 Thread David Howells
Invalidate the FsCache page flags on the pages belonging to an inode when the cache backing that NFS inode is removed. This allows a live cache to be withdrawn. Signed-off-by: David Howells <[EMAIL PROTECTED]> --- fs/nfs/fscache-index.c | 40 1 files

[PATCH 12/37] FS-Cache: Recruit a couple of page flags for cache management

2008-02-20 Thread David Howells
Recruit a couple of page flags to aid in cache management. The following extra flags are defined: (1) PG_fscache (PG_private_2) The marked page is backed by a local cache and is pinning resources in the cache driver. (2) PG_fscache_write (PG_owner_priv_2) The marked page is

[PATCH 16/37] CacheFiles: Be consistent about the use of mapping vs file->f_mapping in Ext3

2008-02-20 Thread David Howells
Change all the usages of file->f_mapping in ext3_*write_end() functions to use the mapping argument directly. This has two consequences: (*) Consistency. Without this patch sometimes one is used and sometimes the other is. (*) A NULL file pointer can be passed. This feature is then

[PATCH 22/37] NFS: Add FS-Cache option bit and debug bit

2008-02-20 Thread David Howells
Add FS-Cache option bit to nfs_server struct. This is set to indicate local on-disk caching is enabled for a particular superblock. Also add debug bit for local caching operations. Signed-off-by: David Howells <[EMAIL PROTECTED]> --- include/linux/nfs_fs.h|1 +

[PATCH 26/37] NFS: Define and create superblock-level objects

2008-02-20 Thread David Howells
Define and create superblock-level cache index objects (as managed by nfs_server structs). Each superblock object is created in a server level index object and is itself an index into which inode-level objects are inserted. Ideally there would be one superblock-level object per server, and the

[PATCH 28/37] NFS: Use local disk inode cache

2008-02-20 Thread David Howells
Bind data storage objects in the local cache to NFS inodes. Signed-off-by: David Howells <[EMAIL PROTECTED]> --- fs/nfs/fscache.c | 131 fs/nfs/fscache.h | 19 +++ fs/nfs/inode.c | 39 --

[PATCH 04/37] KEYS: Add keyctl function to get a security label

2008-02-20 Thread David Howells
Add a keyctl() function to get the security label of a key. The following is added to Documentation/keys.txt: (*) Get the LSM security context attached to a key. long keyctl(KEYCTL_GET_SECURITY, key_serial_t key, char *buffer, size_t buflen) This function

[PATCH 01/37] KEYS: Increase the payload size when instantiating a key

2008-02-20 Thread David Howells
Increase the size of a payload that can be used to instantiate a key in add_key() and keyctl_instantiate_key(). This permits huge CIFS SPNEGO blobs to be passed around. The limit is raised to 1MB. If kmalloc() can't allocate a buffer of sufficient size, vmalloc() will be tried instead.

[PATCH 11/37] FS-Cache: Release page->private after failed readahead

2008-02-20 Thread David Howells
The attached patch causes read_cache_pages() to release page-private data on a page for which add_to_page_cache() fails or the filler function fails. This permits pages with caching references associated with them to be cleaned up. The invalidatepage() address space op is called (indirectly) to

[PATCH 27/37] NFS: Define and create inode-level cache objects

2008-02-20 Thread David Howells
Define and create inode-level cache data storage objects (as managed by nfs_inode structs). Each inode-level object is created in a superblock-level index object and is itself a data storage object into which pages from the inode are stored. The inode object key is the NFS file handle for the

[PATCH 08/37] Security: Add a kernel_service object class to SELinux

2008-02-20 Thread David Howells
Add a 'kernel_service' object class to SELinux and give this object class two access vectors: 'use_as_override' and 'create_files_as'. The first vector is used to grant a process the right to nominate an alternate process security ID for the kernel to use as an override for the SELinux subjective

[PATCH 23/37] NFS: Permit local filesystem caching to be enabled for NFS

2008-02-20 Thread David Howells
Permit local filesystem caching to be enabled for NFS in the kernel configuration. Signed-off-by: David Howells <[EMAIL PROTECTED]> --- fs/Kconfig |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/fs/Kconfig b/fs/Kconfig index c42ec50..fa8e978 100644 ---

[PATCH 02/37] KEYS: Check starting keyring as part of search

2008-02-20 Thread David Howells
Check the starting keyring as part of the search to (a) see if that is what we're searching for, and (b) to check it is still valid for searching. The scenario: User in process A does things that cause things to be created in its process session keyring. The user then does an su to another user

[PATCH 19/37] CacheFiles: Export things for CacheFiles

2008-02-20 Thread David Howells
Export a number of functions for CacheFiles's use. Signed-off-by: David Howells <[EMAIL PROTECTED]> --- fs/super.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/fs/super.c b/fs/super.c index 88811f6..1133b43 100644 --- a/fs/super.c +++ b/fs/super.c @@ -267,6 +267,7

[PATCH 21/37] NFS: Add comment banners to some NFS functions

2008-02-20 Thread David Howells
Add comment banners to some NFS functions so that they can be modified by the NFS fscache patches for further information. Signed-off-by: David Howells <[EMAIL PROTECTED]> --- fs/nfs/file.c | 26 ++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git

[PATCH 24/37] NFS: Register NFS for caching and retrieve the top-level index

2008-02-20 Thread David Howells
Register NFS for caching and retrieve the top-level cache index object cookie. Signed-off-by: David Howells <[EMAIL PROTECTED]> --- fs/nfs/Makefile|1 + fs/nfs/fscache-index.c | 53 fs/nfs/fscache.h | 35

[PATCH 09/37] Security: Allow kernel services to override LSM settings for task actions

2008-02-20 Thread David Howells
Allow kernel services to override LSM settings appropriate to the actions performed by a task by duplicating a security record, modifying it and then using task_struct::act_as to point to it when performing operations on behalf of a task. This is used, for example, by CacheFiles which has to

[PATCH 05/37] Security: Change current->fs[ug]id to current_fs[ug]id()

2008-02-20 Thread David Howells
Change current->fs[ug]id to current_fs[ug]id() so that fsgid and fsuid can be separated from the task_struct. Signed-off-by: David Howells <[EMAIL PROTECTED]> --- arch/ia64/kernel/perfmon.c|4 ++-- arch/powerpc/platforms/cell/spufs/inode.c |4 ++--

[PATCH 13/37] FS-Cache: Provide an add_wait_queue_tail() function

2008-02-20 Thread David Howells
Provide an add_wait_queue_tail() function to add a waiter to the back of a wait queue instead of the front. Signed-off-by: David Howells <[EMAIL PROTECTED]> --- include/linux/pagemap.h |7 +-- include/linux/wait.h|1 + kernel/wait.c | 18 ++

[PATCH 10/37] Security: Make NFSD work with detached security

2008-02-20 Thread David Howells
Make NFSD work with detached security, using the patches that excise the security information from task_struct to struct task_security as a base. Each time NFSD wants a new security descriptor (to do NFS4 recovery or just to do NFS operations), a task_security record is derived from NFSD's

[PATCH 03/37] KEYS: Allow the callout data to be passed as a blob rather than a string

2008-02-20 Thread David Howells
Allow the callout data to be passed as a blob rather than a string for internal kernel services that call any request_key_*() interface other than request_key(). request_key() itself still takes a NUL-terminated string. The functions that change are: request_key_with_auxdata()

[PATCH 00/37] Permit filesystem local caching

2008-02-20 Thread David Howells
These patches add local caching for network filesystems such as NFS. The patches can roughly be broken down into a number of sets: (*) 01-keys-inc-payload.diff (*) 02-keys-search-keyring.diff (*) 03-keys-callout-blob.diff Three patches to the keyring code made to help the CIFS

Re: linux-next: Tree for Feb 20

2008-02-20 Thread James Bottomley
On Thu, 2008-02-21 at 02:20 +1100, Stephen Rothwell wrote: > Hi James, > > On Wed, 20 Feb 2008 08:59:20 -0600 James Bottomley <[EMAIL PROTECTED]> wrote: > > > > Is the merge log available anywhere yet? > > Are you looking for more that what is in Next/merge.log in the tree? Yes, that's it,

Re: [GIT PULL?] Create and populate toplevel tests/ for kernel tests

2008-02-20 Thread Ananth N Mavinakayanahalli
On Tue, Feb 19, 2008 at 08:21:53PM +0100, Sam Ravnborg wrote: > Hi Anath. Hi Sam, > Linus did not pull this in the -rc1 to -rc2 timeframe > so please resubmit the patch serie one week into the > next merge window (when most of the trees has hit linus' tree > and Andrew has made his first merge).

[PATCH] atmel_spi: support zero length transfer

2008-02-20 Thread Atsushi Nemoto
A spi transfer with zero length is not invalid. Such transfer can be used to achieve delay before first CLK edge after chipselect assertion. Signed-off-by: Atsushi Nemoto <[EMAIL PROTECTED]> --- diff --git a/drivers/spi/atmel_spi.c b/drivers/spi/atmel_spi.c index 293b7ca..5dff5e0 100644 ---

Re: [PATCH 1/2] x86_64: Fold pda into per cpu area v3

2008-02-20 Thread Mike Travis
Eric Dumazet wrote: > On Wed, 20 Feb 2008 13:07:47 +0100 > Ingo Molnar <[EMAIL PROTECTED]> wrote: > >> * Mike Travis <[EMAIL PROTECTED]> wrote: >> >>> * Declare the pda as a per cpu variable. This will move the pda area >>> to an address accessible by the x86_64 per cpu macros. >>>

Re: USB regression (and other failures) in 2.6.2[45]* - mostly resolved

2008-02-20 Thread Alan Stern
On Tue, 19 Feb 2008, Andrew Buehler wrote: > With those two problems out of the way, what is left is the hard-drive > issue, and that is also halfway fixed by enabling ACPI. Specifically, it > is "fixed" in that the kernel sees the hard drive and I can mount it, > but it is not fixed in that the

Re: [PATCH] Document huge memory/cache overhead of memory controller in Kconfig

2008-02-20 Thread Jan Engelhardt
On Feb 20 2008 20:50, Balbir Singh wrote: >John Stoffel wrote: >> I know this is a pedantic comment, but why the heck is it called such >> a generic term as "Memory Controller" which doesn't give any >> indication of what it does. >> >> Shouldn't it be something like "Memory Quota Controller",

Re: ftrace causing panics.

2008-02-20 Thread Ingo Molnar
* Steven Rostedt <[EMAIL PROTECTED]> wrote: >> sched-devel as of yesterday. (I don't think anything new has gone in >> today). > > I just sent Ingo my fixes a few minutes ago. You may want to keep an I > out on updates to sched-devel. it's now all up in sched-devel.git. Ingo -- To

Re: ftrace causing panics.

2008-02-20 Thread Steven Rostedt
Dhaval Giani wrote: sched-devel as of yesterday. (I don't think anything new has gone in today). I just sent Ingo my fixes a few minutes ago. You may want to keep an I out on updates to sched-devel. [sorry, not had enough time to get to the bottom of this the last few days] No prob.

Re: Announce: Linux-next (Or Andrew's dream :-))

2008-02-20 Thread Theodore Tso
On Wed, Feb 20, 2008 at 04:38:52PM +0100, Stefan Richter wrote: > Two things may largely eliminate the need for parallel branches. > > 1. Do infrastructure changes and whole tree wide refactoring etc. in a > compatible manner with a brief but nonzero transition period. > > 2. Insert a second

Re: [Openipmi-developer] [PATCH 3/4] IPMI: convert locked counters to atomics

2008-02-20 Thread Corey Minyard
Matt Domsch wrote: On Thu, Feb 14, 2008 at 12:30:51PM -0600, Corey Minyard wrote: From: Konstantin Baydarov <[EMAIL PROTECTED]> Atomics are a lot more efficient and neat than using a lock. per_cpu variables are a lot more efficient and neat than using locks for simple statistics. no

Re: [Linux-fbdev-devel] [PATCH 1/2] fb: add support for foreign endianness

2008-02-20 Thread Clemens Koller
Paul Mackerras schrieb: Andrew Morton writes: Bizarrely, the original author of the patch (Anton) has fallen off the cc. Could whoever did that please thwap himself? Anyway, my head is now officially spinning. Did anyone actually have a reason why we shouldn't proceed with Anton's patch?

Re: Announce: Linux-next (Or Andrew's dream :-))

2008-02-20 Thread Stefan Richter
Stephen Rothwell wrote: > On Thu, 14 Feb 2008 10:01:14 -0800 (PST) Linus Torvalds <[EMAIL PROTECTED]> > wrote: >> >> I absolutely have no problem with having a "this is the infrastrcture >> changes that will go into the next release". In fact, I can even >> *maintain* such a branch. >> >>

[PATCH 24/28] nfs: remove mempools

2008-02-20 Thread Peter Zijlstra
With the introduction of the shared dirty page accounting in .19, NFS should not be able to surpise the VM with all dirty pages. Thus it should always be able to free some memory. Hence no more need for mempools. Signed-off-by: Peter Zijlstra <[EMAIL PROTECTED]> --- fs/nfs/read.c | 15

[PATCH 06/28] mm: serialize access to min_free_kbytes

2008-02-20 Thread Peter Zijlstra
There is a small race between the procfs caller and the memory hotplug caller of setup_per_zone_pages_min(). Not a big deal, but the next patch will add yet another caller. Time to close the gap. Signed-off-by: Peter Zijlstra <[EMAIL PROTECTED]> --- mm/page_alloc.c | 16 +--- 1

[PATCH 05/28] mm: allow PF_MEMALLOC from softirq context

2008-02-20 Thread Peter Zijlstra
Allow PF_MEMALLOC to be set in softirq context. When running softirqs from a borrowed context save current->flags, ksoftirqd will have its own task_struct. This is needed to allow network softirq packet processing to make use of PF_MEMALLOC. Signed-off-by: Peter Zijlstra <[EMAIL PROTECTED]> ---

Re: [PATCH] mmu notifiers #v6

2008-02-20 Thread Andrea Arcangeli
On Wed, Feb 20, 2008 at 08:41:55AM -0600, Robin Holt wrote: > On Wed, Feb 20, 2008 at 11:39:42AM +0100, Andrea Arcangeli wrote: > > XPMEM simply can't use RCU for the registration locking if it wants to > > schedule inside the mmu notifier calls. So I guess it's better to add > > Whoa there. In

Re: [PATCH] x86: complete segment descriptor unification

2008-02-20 Thread Ingo Molnar
* Avi Kivity <[EMAIL PROTECTED]> wrote: > Remove the final line in asm-x86/desc_64.h thanks, applied :-) Ingo -- 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: hdparm-8.2 now available

2008-02-20 Thread Greg Freemyer
Mark, What kernel level is needed to support the new -N arg? Tried it on a Suse 2.6.22 kernel (possibly not patched with all the current security updates). Failed with: The Running Kernel Lack CONFIG_IDE_TASK_IOCTL Support. Thanks Greg On Mon, Feb 18, 2008 at 7:25 PM, Mark Lord <[EMAIL

Re: [PATCH 2.6.25-rc2] block2mtd: logging typo fixes

2008-02-20 Thread Jörn Engel
On Wed, 20 February 2008 15:00:21 +, Stephane Chazelas wrote: > > this patch addresses a number of small issues mainly regarding > the output made by this driver to dmesg: > - Some of the blkmtd's had not been changed to block2mtd which > caused display problem > - the parse_err()

[PATCH] x86: complete segment descriptor unification

2008-02-20 Thread Avi Kivity
Remove the final line in asm-x86/desc_64.h Signed-off-by: Avi Kivity <[EMAIL PROTECTED]> --- include/asm-x86/desc_64.h |1 - 1 files changed, 0 insertions(+), 1 deletions(-) delete mode 100644 include/asm-x86/desc_64.h diff --git a/include/asm-x86/desc_64.h b/include/asm-x86/desc_64.h

Re: adapter, what's in a name

2008-02-20 Thread Stefan Richter
Karl Dahlke wrote: > As was pointed out, it is difficult to place an accessibility adapter > under one particular subsystem. > Mine takes over the screen, to be a screen reader, > and it captures tty output, because it is more than just a screen reader, > it buffers output, exactly as generated,

[PATCH 22/28] mm: add support for non block device backed swap files

2008-02-20 Thread Peter Zijlstra
New addres_space_operations methods are added: int swapfile(struct address_space *, int); int swap_out(struct file *, struct page *, struct writeback_control *); int swap_in(struct file *, struct page *); When during sys_swapon() the swapfile() method is found and returns no error the

[PATCH 28/28] nfs: fix various memory recursions possible with swap over NFS.

2008-02-20 Thread Peter Zijlstra
GFP_NOFS is not enough, since swap traffic is IO, hence fall back to GFP_NOIO. Signed-off-by: Peter Zijlstra <[EMAIL PROTECTED]> --- fs/nfs/pagelist.c |2 +- fs/nfs/write.c|6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) Index: linux-2.6/fs/nfs/write.c

[PATCH 09/28] mm: __GFP_MEMALLOC

2008-02-20 Thread Peter Zijlstra
__GFP_MEMALLOC will allow the allocation to disregard the watermarks, much like PF_MEMALLOC. Signed-off-by: Peter Zijlstra <[EMAIL PROTECTED]> --- include/linux/gfp.h |3 ++- mm/page_alloc.c |4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) Index:

Re: ftrace causing panics.

2008-02-20 Thread Dhaval Giani
On Wed, Feb 20, 2008 at 10:02:18AM -0500, Steven Rostedt wrote: > Dhaval Giani wrote: >> Hi Ingo, >> >> ftrace-cmd in -w option when being run for sometime cause this. >> >> >> llm11.in.ibm.com login: [ 1002.937490] BUG: unable to handle kernel paging >> request at 285b0010 >> [ 1002.947087] IP:

[PATCH 26/28] nfs: disable data cache revalidation for swapfiles

2008-02-20 Thread Peter Zijlstra
Do as Trond suggested: http://lkml.org/lkml/2006/8/25/348 Disable NFS data cache revalidation on swap files since it doesn't really make sense to have other clients change the file while you are using it. Thereby we can stop setting PG_private on swap pages, since there ought to be no further

[PATCH 18/28] netvm: filter emergency skbs.

2008-02-20 Thread Peter Zijlstra
Toss all emergency packets not for a SOCK_MEMALLOC socket. This ensures our precious memory reserve doesn't get stuck waiting for user-space. The correctness of this approach relies on the fact that networks must be assumed lossy. Signed-off-by: Peter Zijlstra <[EMAIL PROTECTED]> ---

Re: [PATCH 0/2] x86: Optimize percpu accesses v3

2008-02-20 Thread Mike Travis
Ingo Molnar wrote: > * Mike Travis <[EMAIL PROTECTED]> wrote: > >> This patchset is the x86-specific part split from the generic part of >> the zero-based patchset. > > thanks Mike, applied them to x86.git. Do these depend on the generic > bits? (for now we'll keep these in -testing, so that

[PATCH 16/28] netvm: INET reserves.

2008-02-20 Thread Peter Zijlstra
Add reserves for INET. The two big users seem to be the route cache and ip-fragment cache. Reserve the route cache under generic RX reserve, its usage is bounded by the high reclaim watermark, and thus does not need further accounting. Reserve the ip-fragement caches under SKB data reserve,

Re: adapter, what's in a name

2008-02-20 Thread Frans Pop
Karl Dahlke wrote: > Meantime, I pulled the emails out of the headers and pasted them in. > Hope that reasonably works. Well, you're still breaking the thread by starting a new one. Guess when you're implementing reply-to-all, you should also think about implementing support for In-Reply-To: and

Re: linux-next: Tree for Feb 20

2008-02-20 Thread Frank Seidel
James Bottomley wrote: > On Wed, 2008-02-20 at 16:34 +1100, Stephen Rothwell wrote: >> There were no merge conflicts and only one build failure! > > Is the merge log available anywhere yet? Yes, there is the Next/merge.log file in linux-next.

Re: [PATCH] Document huge memory/cache overhead of memory controller in Kconfig

2008-02-20 Thread Balbir Singh
John Stoffel wrote: > I know this is a pedantic comment, but why the heck is it called such > a generic term as "Memory Controller" which doesn't give any > indication of what it does. > > Shouldn't it be something like "Memory Quota Controller", or "Memory > Limits Controller"? > It's called

Re: TG3 network data corruption regression 2.6.24/2.6.23.4

2008-02-20 Thread Tony Battersby
Herbert Xu wrote: > On Tue, Feb 19, 2008 at 05:14:26PM -0500, Tony Battersby wrote: > >> Update: when I revert Herbert's patch in addition to applying your >> patch, the iSCSI performance goes back up to 115 MB/s again in both >> directions. So it looks like turning off SG for TX didn't itself

Re: linux-next: Tree for Feb 20

2008-02-20 Thread Stephen Rothwell
Hi James, On Wed, 20 Feb 2008 08:59:20 -0600 James Bottomley <[EMAIL PROTECTED]> wrote: > > Is the merge log available anywhere yet? Are you looking for more that what is in Next/merge.log in the tree? -- Cheers, Stephen Rothwell[EMAIL PROTECTED]

[PATCH 17/28] netvm: hook skb allocation to reserves

2008-02-20 Thread Peter Zijlstra
Change the skb allocation api to indicate RX usage and use this to fall back to the reserve when needed. SKBs allocated from the reserve are tagged in skb->emergency. Teach all other skb ops about emergency skbs and the reserve accounting. Use the (new) packet split API to allocate and track

[PATCH 14/28] net: sk_allocation() - concentrate socket related allocations

2008-02-20 Thread Peter Zijlstra
Introduce sk_allocation(), this function allows to inject sock specific flags to each sock related allocation. Signed-off-by: Peter Zijlstra <[EMAIL PROTECTED]> --- include/net/sock.h|5 + net/ipv4/tcp.c|3 ++- net/ipv4/tcp_output.c | 12 +++-

[PATCH 21/28] netvm: skb processing

2008-02-20 Thread Peter Zijlstra
In order to make sure emergency packets receive all memory needed to proceed ensure processing of emergency SKBs happens under PF_MEMALLOC. Use the (new) sk_backlog_rcv() wrapper to ensure this for backlog processing. Skip taps, since those are user-space again. Signed-off-by: Peter Zijlstra

[PATCH 08/28] mm: system wide ALLOC_NO_WATERMARK

2008-02-20 Thread Peter Zijlstra
Change ALLOC_NO_WATERMARK page allocation such that the reserves are system wide - which they are per setup_per_zone_pages_min(), when we scrape the barrel, do it properly. Signed-off-by: Peter Zijlstra <[EMAIL PROTECTED]> --- mm/page_alloc.c |6 ++ 1 file changed, 6 insertions(+)

[PATCH 19/28] netvm: prevent a stream specific deadlock

2008-02-20 Thread Peter Zijlstra
It could happen that all !SOCK_MEMALLOC sockets have buffered so much data that we're over the global rmem limit. This will prevent SOCK_MEMALLOC buffers from receiving data, which will prevent userspace from running, which is needed to reduce the buffered data. Fix this by exempting the

[PATCH 25/28] nfs: teach the NFS client how to treat PG_swapcache pages

2008-02-20 Thread Peter Zijlstra
Replace all relevant occurences of page->index and page->mapping in the NFS client with the new page_file_index() and page_file_mapping() functions. Signed-off-by: Peter Zijlstra <[EMAIL PROTECTED]> --- fs/nfs/file.c |6 +++--- fs/nfs/internal.h |7 --- fs/nfs/pagelist.c |6

[PATCH 20/28] netfilter: NF_QUEUE vs emergency skbs

2008-02-20 Thread Peter Zijlstra
Avoid memory getting stuck waiting for userspace, drop all emergency packets. This of course requires the regular storage route to not include an NF_QUEUE target ;-) Signed-off-by: Peter Zijlstra <[EMAIL PROTECTED]> --- net/netfilter/core.c |3 +++ 1 file changed, 3 insertions(+) Index:

[PATCH 27/28] nfs: enable swap on NFS

2008-02-20 Thread Peter Zijlstra
Implement all the new swapfile a_ops for NFS. This will set the NFS socket to SOCK_MEMALLOC and run socket reconnect under PF_MEMALLOC as well as reset SOCK_MEMALLOC before engaging the protocol ->connect() method. PF_MEMALLOC should allow the allocation of struct socket and related objects and

[PATCH 00/28] Swap over NFS -v16

2008-02-20 Thread Peter Zijlstra
Hi, Another posting of the full swap over NFS series. Andrew/Linus, could we start thinking of sticking this in -mm? [ patches against 2.6.25-rc2-mm1, also to be found online at: http://programming.kicks-ass.net/kernel-patches/vm_deadlock/v2.6.25-rc2-mm1/ ] The patch-set can be split in

[PATCH 23/28] mm: methods for teaching filesystems about PG_swapcache pages

2008-02-20 Thread Peter Zijlstra
In order to teach filesystems to handle swap cache pages, two new page functions are introduced: pgoff_t page_file_index(struct page *); struct address_space *page_file_mapping(struct page *); page_file_index - gives the offset of this page in the file in PAGE_CACHE_SIZE blocks. Like

[PATCH 15/28] netvm: network reserve infrastructure

2008-02-20 Thread Peter Zijlstra
Provide the basic infrastructure to reserve and charge/account network memory. We provide the following reserve tree: 1) total network reserve 2)network TX reserve 3) protocol TX pages 4)network RX reserve 5) SKB data reserve [1] is used to make all the network reserves a

[PATCH 13/28] net: packet split receive api

2008-02-20 Thread Peter Zijlstra
Add some packet-split receive hooks. For one this allows to do NUMA node affine page allocs. Later on these hooks will be extended to do emergency reserve allocations for fragments. Signed-off-by: Peter Zijlstra <[EMAIL PROTECTED]> --- drivers/net/bnx2.c |8 +++-

[PATCH 01/28] mm: gfp_to_alloc_flags()

2008-02-20 Thread Peter Zijlstra
Factor out the gfp to alloc_flags mapping so it can be used in other places. Signed-off-by: Peter Zijlstra <[EMAIL PROTECTED]> --- mm/internal.h | 11 ++ mm/page_alloc.c | 98 2 files changed, 67 insertions(+), 42 deletions(-)

<    1   2   3   4   5   6   7   8   9   10   >