Re: If not readdir() then what?

2007-04-11 Thread Neil Brown
On Thursday April 12, [EMAIL PROTECTED] wrote: > On Thu, 12 April 2007 11:46:41 +1000, Neil Brown wrote: > > > > I could argue that nfs came before ext3+dirindex, so ext3 should have > > been designed to work properly with NFS. You could argue that fixing > > it in nfsd fixes it for all filesyste

Re: [PATCH 6/13] maps#2: Move the page walker code to lib/

2007-04-11 Thread Nick Piggin
Matt Mackall wrote: On Wed, Apr 11, 2007 at 04:35:44PM +1000, Nick Piggin wrote: Matt Mackall wrote: Move the page walker code to lib/ This lets it get shared outside of proc/ and linked in only when needed. Still should go into mm/ If it had, you might have also noticed your pagetable wa

Re: Why kmem_cache_free occupy CPU for more than 10 seconds?

2007-04-11 Thread Zhao Forrest
On 4/11/07, Peter Zijlstra <[EMAIL PROTECTED]> wrote: On Wed, 2007-04-11 at 17:53 +0800, Zhao Forrest wrote: > I got some new information: > Before soft lockup message is out, we have: > [EMAIL PROTECTED] home]# cat /proc/slabinfo |grep buffer_head > buffer_head 10927942 10942560120 3

help me on 2.6.15 kernel on MPC850

2007-04-11 Thread gshan
Hey Guys, The CPU was spinning when executing in head_8xx.S::initial_mmu. I have located the instruction that cause the spinning through on-board leds. Do you have any ideas? #ifdef CONFIG_8xx_COPYBACK mtspr SPRN_DC_CST, r8 <<< The spinning was cau

Re: [patch 00/31] [00/@[EMAIL PROTECTED] -stable review

2007-04-11 Thread Greg KH
(hm, quilt messed up that subject, sorry...) On Wed, Apr 11, 2007 at 03:51:00PM -0700, Greg KH wrote: > This is the start of the stable review cycle for the 2.6.20.7 release. And here's the rolled up patch (note the new subdirectory): kernel.org/pub/linux/kernel/v2.6/stable-review/patch-2.6.20

Re: [PATCH] make MADV_FREE lazily free memory

2007-04-11 Thread Nick Piggin
Nick Piggin wrote: Eric Dumazet wrote: Two things can happen here. If this program used the pages before the kernel needed them, the program will be reusing its old pages. ah ok, this is because accessed/dirty bits are set by hardware and not a page fault. No it isn't. That is to s

Re: [PATCH] make MADV_FREE lazily free memory

2007-04-11 Thread Nick Piggin
Eric Dumazet wrote: Rik van Riel a écrit : Eric Dumazet wrote: Rik van Riel a écrit : Make it possible for applications to have the kernel free memory lazily. This reduces a repeated free/malloc cycle from freeing pages and allocating them, to just marking them freeable. If the applicatio

Re: [PATCH] make MADV_FREE lazily free memory

2007-04-11 Thread Eric Dumazet
Rik van Riel a écrit : Eric Dumazet wrote: Rik van Riel a écrit : Make it possible for applications to have the kernel free memory lazily. This reduces a repeated free/malloc cycle from freeing pages and allocating them, to just marking them freeable. If the application wants to reuse them be

Re: kernel BUG at net/core/skbuff.c in linux-2.6.21-rc6

2007-04-11 Thread Patrick McHardy
Bartek wrote: > Hopefully, this time it my bug report should be ok :): > > Apr 11 23:53:38 localhost pppd[31289]: rcvd [proto=0x7689] e1 cd 33 f6 > fd f7 52 e6 58 c9 73 98 bc ff ad d5 b5 a3 e5 d9 1e 77 76 0a 1c 87 59 > bf 44 cc ac 3b ... > Apr 11 23:53:38 localhost pppd[31289]: Unsupported protoco

Re: tmpfs and the OOM killer

2007-04-11 Thread Pedro
On Thursday 12 April 2007 02:04, Al Boldi wrote: > > Pedro wrote: > > 2) How should an application be written to not be killed by OOM? > > Try this: > > # echo -17 > /proc//oom_adj I should know that to run a fail-safe application is a superuser privilege. Sorry from wasting your time. - To

[PATCH 4/4] Pte simplify ops.patch

2007-04-11 Thread Zachary Amsden
Add comment and condense code to make use of native_local_ptep_get_and_clear function. Also, it turns out the 2-level and 3-level paging definitions were identical, so move the common definition into pgtable.h Signed-off-by: Zachary Amsden <[EMAIL PROTECTED]> diff -r b3bbc1b5e085 include/asm-i38

[PATCH 3/4] Pte xchg optimization.patch

2007-04-11 Thread Zachary Amsden
In situations where page table updates need only be made locally, and there is no cross-processor A/D bit races involved, we need not use the heavyweight xchg instruction to atomically fetch and clear page table entries. Instead, we can just read and clear them directly. This introduces a neat op

[PATCH 1/4] Pte drop ptep_get_and_clear paravirt op.patch

2007-04-11 Thread Zachary Amsden
In shadow mode hypervisors, ptep_get_and_clear achieves the desired purpose of keeping the shadows in sync by issuing a native_get_and_clear, followed by a call to pte_update, which indicates the PTE has been modified. Direct mode hypervisors (Xen) have no need for this anyway, and will trap the u

[PATCH 2/4] Pte clear optimization.patch

2007-04-11 Thread Zachary Amsden
When exiting from an address space, no special hypervisor notification of page table updates needs to occur; direct page table hypervisors, such as Xen, switch to another address space first (init_mm) and unprotects the page tables to avoid the cost of trapping to the hypervisor for each pte_clear.

[PATCH 0/4] i386 - pte update optimizations

2007-04-11 Thread Zachary Amsden
Some PTE optimizations for native and paravirt-ops kernels; this provides a huge win for shadow mode hypervisors and gets rid of some unnecessary atomic instructions in native kernels, saving even more on UP by getting rid of implicit LOCK on xchg instruction. Zach - To unsubscribe from this list:

Re: [PATCH] NET: [UPDATED] Multiqueue network device support implementation.

2007-04-11 Thread Zhu Yi
On Wed, 2007-04-11 at 19:03 +0200, Patrick McHardy wrote: > > You bring up a good point, it would be good to hear the opinion from > one of the wireless people on this since they have their own > multiqueue scheduler in the wireless-dev tree. The one in the wireless-dev is pretty much like this

Re: tmpfs and the OOM killer

2007-04-11 Thread Pedro
On Wednesday 11 April 2007 19:39, Alan Cox wrote: > > 2) How should an application be written to not be killed by OOM? > > OOM isn't an application matter. The kernel has to choose between > allowing overcommit on the basis it might run out of memory and have to > kill stuff, or that it won't in

Re: kernel BUG at net/core/skbuff.c in linux-2.6.21-rc6

2007-04-11 Thread Bartek
It is not enough to unload proprietary modules. As long as they have ever been loaded at all the kernel is tainted. You need to ensure that the proprietary modules never get loaded at all. I guess you probably already worked that out, just wanted to point it out just in case :-) Hopefully, this

Re: tmpfs and the OOM killer

2007-04-11 Thread Al Boldi
Pedro wrote: > On Wednesday 11 April 2007 16:48, Willy Tarreau wrote: > > On Wed, Apr 11, 2007 at 02:23:31AM -0300, Pedro wrote: > > > > > > As the OOM killer is not Posix, > > > > If you cannot control your application's memory usage, you'll have to > > finely tune the overcommit_ratio. > > 2)

[KJ][PATCH] ROUND_UP macro cleanup in arch/sh64/kernel/pci_sh5.c

2007-04-11 Thread Milind Arun Choudhary
ROUND_UP macro cleanup, use ALIGN where ever appropriate. Signed-off-by: Milind Arun Choudhary <[EMAIL PROTECTED]> --- pci_sh5.c | 12 1 files changed, 4 insertions(+), 8 deletions(-) diff --git a/arch/sh64/kernel/pci_sh5.c b/arch/sh64/kernel/pci_sh5.c index 9dae689..11d1fef 1006

Re: Linux 2.6.21-rc6

2007-04-11 Thread Jeff Chua
On 4/10/07, Linus Torvalds <[EMAIL PROTECTED]> wrote: On Tue, 10 Apr 2007, Jeff Chua wrote: > I couldn't get suspend-to-disk to work with 2.6.21-rc6. I've tried > set/unset CONFIG_NO_HZ/CONFIG_HPET_TIMER, but nothing worked. Do you think you could busect it? You'd have to apply maxim's patch by

Re: [PATCH 3/7] [RFC] Battery monitoring class

2007-04-11 Thread Greg KH
On Thu, Apr 12, 2007 at 03:25:03AM +0400, Anton Vorontsov wrote: > Here is battery monitor class. According to first copyright string, we're > maintaining it since 2003. I've took few days and cleaned it up to be > more suitable for mainline inclusion. > > It differs from battery class at git://gi

Re: [PATCH 3/7] [RFC] Battery monitoring class

2007-04-11 Thread Randy Dunlap
On Thu, 12 Apr 2007 03:25:03 +0400 Anton Vorontsov wrote: > Here is battery monitor class. According to first copyright string, we're > maintaining it since 2003. I've took few days and cleaned it up to be > more suitable for mainline inclusion. > > --- > drivers/Kconfig |2 + > dr

Re: [PATCH 0/12] Pass MAP_FIXED down to get_unmapped_area

2007-04-11 Thread Benjamin Herrenschmidt
> Is there any support consideration for nommu arch such as blackfin which > is in the -mm tree now? > > It is very kind of you to point out some idea about MAP_FIXED for > Blackfin arch, I will do some help for this. Right now, my understanding is that nommu archs just reject MAP_FIXED outright.

[PATCH 6/17] hfs: remove redundant read_mapping_page error check

2007-04-11 Thread Nate Diller
Now that read_mapping_page() does error checking internally, there is no need to check PageError here. Signed-off-by: Nate Diller <[EMAIL PROTECTED]> --- diff -urpN -X dontdiff linux-2.6.21-rc6-mm1/fs/hfs/bnode.c linux-2.6.21-rc6-mm1-test/fs/hfs/bnode.c --- linux-2.6.21-rc6-mm1/fs/hfs/bnode.c 2

[PATCH 7/17] jffs2: convert jffs2_gc_fetch_page to read_cache_page

2007-04-11 Thread Nate Diller
Replace jffs2_gc_fetch_page() and jffs2_gc_release_page() using the read_cache_page() and put_kmapped_page() calls, and update the call site accordingly. Explicit calls to kmap()/kunmap() make the code more clear. Signed-off-by: Nate Diller <[EMAIL PROTECTED]> --- diff -urpN -X dontdiff linux-2

[PATCH 11/17] ntfs: convert ntfs_map_page to read_kmap_page

2007-04-11 Thread Nate Diller
Replace ntfs_map_page() and ntfs_unmap_page() using the new read_kmap_page() and put_kmapped_page() calls, and their locking variants, and remove unneeded PageError checking. Signed-off-by: Nate Diller <[EMAIL PROTECTED]> --- diff -urpN -X dontdiff linux-2.6.21-rc5-mm4/fs/ntfs/aops.h linux-2.6.

[PATCH 1/17] cramfs: use read_mapping_page

2007-04-11 Thread Nate Diller
read_mapping_page_async() is going away, so convert its only user to read_mapping_page(). This change has not been benchmarked, however, in order to get real parallelism this wants something completely different, like __do_page_cache_readahead(), which is not currently exported. Signed-off-by: Na

[PATCH 5/17] hfsplus: remove redundant read_mapping_page error check

2007-04-11 Thread Nate Diller
Now that read_mapping_page() does error checking internally, there is no need to check PageError here. Signed-off-by: Nate Diller <[EMAIL PROTECTED]> --- diff -urpN -X dontdiff linux-2.6.21-rc6-mm1/fs/hfsplus/bnode.c linux-2.6.21-rc6-mm1-test/fs/hfsplus/bnode.c --- linux-2.6.21-rc6-mm1/fs/hfs

[PATCH 14/17] reiserfs: convert reiserfs_get_page to read_kmap_page

2007-04-11 Thread Nate Diller
Replace reiserfs_get_page() and reiserfs_put_page() using the new read_kmap_page() and put_kmapped_page() calls and their locking variants. Also, propagate the gfp_mask() deadlock comment to callsites. Signed-off-by: Nate Diller <[EMAIL PROTECTED]> --- diff -urpN -X dontdiff linux-2.6.21-rc5-mm

[PATCH 17/17] vxfs: convert vxfs_get_page to read_kmap_page

2007-04-11 Thread Nate Diller
Replace vxfs_get_page() with the new read_kmap_page(). Signed-off-by: Nate Diller <[EMAIL PROTECTED]> --- diff -urpN -X dontdiff linux-2.6.21-rc5-mm4/fs/freevxfs/vxfs_extern.h linux-2.6.21-rc5-mm4-test/fs/freevxfs/vxfs_extern.h --- linux-2.6.21-rc5-mm4/fs/freevxfs/vxfs_extern.h 2007-04-05

[PATCH 15/17] sysv: convert dir_get_page to read_kmap_page

2007-04-11 Thread Nate Diller
Replace sysv dir_get_page() with the new read_kmap_page(). Signed-off-by: Nate Diller <[EMAIL PROTECTED]> --- diff -urpN -X dontdiff linux-2.6.21-rc5-mm4/fs/sysv/dir.c linux-2.6.21-rc5-mm4-test/fs/sysv/dir.c --- linux-2.6.21-rc5-mm4/fs/sysv/dir.c 2007-04-05 17:14:25.0 -0700 +++ linux-2

Re: [PATCH 0/12] Pass MAP_FIXED down to get_unmapped_area

2007-04-11 Thread Wu, Bryan
On Thu, 2007-04-12 at 12:20 +1000, Benjamin Herrenschmidt wrote: > This is a "first step" as there are still cleanups to be done in various > areas touched by that code but I think it's probably good to go as is and > at least enables me to implement what I need for PowerPC. > > (Andrew, this is a

[PATCH 16/17] ufs: convert ufs_get_page to read_kmap_page

2007-04-11 Thread Nate Diller
Replace ufs_get_page()/ufs_get_locked_page() and ufs_put_page()/ufs_put_locked_page() using the new read_kmap_page() and put_kmapped_page() calls and their locking variants. Also, change the ufs_check_page() call to return the page's error status, and update the call sites accordingly. Signed-off

[PATCH 13/17] reiser4: remove redundant read_mapping_page error checks

2007-04-11 Thread Nate Diller
read_mapping_page() is now fully synchronous, so there's no need wait for the page lock or check for I/O errors. Signed-off-by: Nate Diller <[EMAIL PROTECTED]> --- diff -urpN -X dontdiff linux-2.6.21-rc6-mm1/fs/reiser4/plugin/file/tail_conversion.c linux-2.6.21-rc6-mm1-test/fs/reiser4/plugin/f

[PATCH 12/17] partition: remove redundant read_mapping_page error checks

2007-04-11 Thread Nate Diller
Remove unneeded PageError checking in read_dev_sector(), and clean up the code a bit. Can anyone point out why it's OK to use page_address() here on a page which has not been kmapped? If it's not OK, then a good number of callers need to be fixed. Signed-off-by: Nate Diller <[EMAIL PROTECTED]>

[PATCH 9/17] minix: convert dir_get_page to read_kmap_page

2007-04-11 Thread Nate Diller
Replace minix dir_get_page() and dir_put_page() using the new read_kmap_page() and put_kmapped_page()/put_locked_page() calls. Also, use __read_kmap_page() instead of re-taking the page_lock. Signed-off-by: Nate Diller <[EMAIL PROTECTED]> --- diff -urpN -X dontdiff linux-2.6.21-rc5-mm4/fs/minix

[PATCH 10/17] mtd: convert page_read to read_kmap_page

2007-04-11 Thread Nate Diller
Replace page_read() with read_kmap_page()/__read_kmap_page(). This probably fixes behaviour on highmem systems, since page_address() was being used without kmap(). Also eliminate the need to re-take the page lock during writes to the page. Signed-off-by: Nate Diller <[EMAIL PROTECTED]> --- dif

[PATCH 4/17] ext2: convert ext2_get_page to read_kmap_page

2007-04-11 Thread Nate Diller
Replace ext2_get_page() and ext2_put_page() using the new read_kmap_page() and put_kmapped_page() calls. Also, change the ext2_check_page() call to return the page's error status, and update the call sites accordingly. Signed-off-by: Nate Diller <[EMAIL PROTECTED]> --- diff -urpN -X dontdiff li

[PATCH 8/17] jfs: use locking read_mapping_page

2007-04-11 Thread Nate Diller
Use the new locking variant of read_mapping_page to avoid doing extra work. Signed-off-by: Nate Diller <[EMAIL PROTECTED]> --- diff -urpN -X dontdiff linux-2.6.21-rc6-mm1/fs/jfs/jfs_metapage.c linux-2.6.21-rc6-mm1-test/fs/jfs/jfs_metapage.c --- linux-2.6.21-rc6-mm1/fs/jfs/jfs_metapage.c 2007-0

[PATCH 2/17] fs: introduce new read_cache_page interface

2007-04-11 Thread Nate Diller
Export a single version of read_cache_page, which returns with a locked, Uptodate page or a synchronous error, and use inline helper functions to replicate the old behavior. Also, introduce new helper functions for the most common file system uses, which include kmapping the page, as well as needi

[PATCH 3/17] afs: convert afs_dir_get_page to read_kmap_page

2007-04-11 Thread Nate Diller
Replace afs_dir_get_page() and afs_dir_put_page() using the new read_kmap_page() and put_kmapped_page() calls, and eliminate unnecessary PageError checks. Also, change the afs_dir_check_page() call to return the page's error status, and update the call site accordingly. Signed-off-by: Nate Diller

[PATCH 0/17] fs: cleanup single page synchronous read interface

2007-04-11 Thread Nate Diller
Nick Piggin recently changed the read_cache_page interface to be synchronous, which is pretty much what the file systems want anyway. Turns out that they have more in common than that, though, and some of them want to be able to get an uptodate *locked* page. Many of them want a kmapped page, whi

Re: If not readdir() then what?

2007-04-11 Thread Jörn Engel
On Thu, 12 April 2007 11:46:41 +1000, Neil Brown wrote: > > I could argue that nfs came before ext3+dirindex, so ext3 should have > been designed to work properly with NFS. You could argue that fixing > it in nfsd fixes it for all filesystems. But I'm not sure either of > those arguments are lik

Announce: New release of Linux-ready Firmware Dev Kit - Release 2

2007-04-11 Thread Selbak, Rolla N
The Linux-ready Firmware Developer Kit team is pleased to announce the release R2 of the kit. This release is mostly very heavy with bug-fixes, infrastructure re-org. to make it easier for outside developers to write & contribute plugins, and of course, tons of documentation. A few new tests an

[PATCH 7/12] get_unmapped_area handles MAP_FIXED on parisc

2007-04-11 Thread Benjamin Herrenschmidt
Handle MAP_FIXED in parisc arch_get_unmapped_area(), just return the address. We might want to also check for possible cache aliasing issues now that we get called in that case (like ARM or MIPS), leave a comment for the maintainers to pick up. Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECT

[PATCH 6/12] get_unmapped_area handles MAP_FIXED on ia64

2007-04-11 Thread Benjamin Herrenschmidt
Handle MAP_FIXED in ia64 arch_get_unmapped_area and hugetlb_get_unmapped_area(), just call prepare_hugepage_range in the later and is_hugepage_only_range() in the former. Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> arch/ia64/kernel/sys_ia64.c |7 +++ arch/ia64/mm/hugetlbpag

[PATCH 5/12] get_unmapped_area handles MAP_FIXED on i386

2007-04-11 Thread Benjamin Herrenschmidt
Handle MAP_FIXED in i386 hugetlb_get_unmapped_area(), just call prepare_hugepage_range. Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> arch/i386/mm/hugetlbpage.c |6 ++ 1 file changed, 6 insertions(+) Index: linux-cell/arch/i386/mm/hugetlbpage.c ==

[PATCH 4/12] get_unmapped_area handles MAP_FIXED on frv

2007-04-11 Thread Benjamin Herrenschmidt
Handle MAP_FIXED in arch_get_unmapped_area on frv. Trivial case, just return the address. Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> arch/frv/mm/elf-fdpic.c |4 1 file changed, 4 insertions(+) Index: linux-cell/arch/frv/mm/elf-fdpic.c

[PATCH 9/12] get_unmapped_area handles MAP_FIXED on x86_64

2007-04-11 Thread Benjamin Herrenschmidt
Handle MAP_FIXED in x86_64 arch_get_unmapped_area(), simple case, just return the address as passed in Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> arch/x86_64/kernel/sys_x86_64.c |3 +++ 1 file changed, 3 insertions(+) Index: linux-cell/arch/x86_64/kernel/sys_x86_64.c

[PATCH 8/12] get_unmapped_area handles MAP_FIXED on sparc64

2007-04-11 Thread Benjamin Herrenschmidt
Handle MAP_FIXED in hugetlb_get_unmapped_area on sparc64 by just using prepare_hugepage_range() Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> arch/sparc64/mm/hugetlbpage.c |6 ++ 1 file changed, 6 insertions(+) Index: linux-cell/arch/sparc64/mm/hugetlbpage.c

[PATCH 12/12] get_unmapped_area doesn't need hugetlbfs hacks anymore

2007-04-11 Thread Benjamin Herrenschmidt
Remove the hugetlbfs specific hacks in toplevel get_unmapped_area() now that all archs and hugetlbfs itself do the right thing for both cases. Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> mm/mmap.c | 16 1 file changed, 16 deletions(-) Index: linux-cell/mm/mmap.c

[PATCH 10/12] get_unmapped_area handles MAP_FIXED in hugetlbfs

2007-04-11 Thread Benjamin Herrenschmidt
Generic hugetlb_get_unmapped_area() now handles MAP_FIXED by just calling prepare_hugepage_range() Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> fs/hugetlbfs/inode.c |6 ++ 1 file changed, 6 insertions(+) Index: linux-cell/fs/hugetlbfs/inode.c ===

[PATCH 11/12] get_unmapped_area handles MAP_FIXED in generic code

2007-04-11 Thread Benjamin Herrenschmidt
generic arch_get_unmapped_area() now handles MAP_FIXED. Now that all implementations have been fixed, change the toplevel get_unmapped_area() to call into arch or drivers for the MAP_FIXED case. Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> mm/mmap.c | 25 +++--

[PATCH 2/12] get_unmapped_area handles MAP_FIXED on alpha

2007-04-11 Thread Benjamin Herrenschmidt
Handle MAP_FIXED in alpha's arch_get_unmapped_area(), simple case, just return the address as passed in Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> arch/alpha/kernel/osf_sys.c |3 +++ 1 file changed, 3 insertions(+) Index: linux-cell/arch/alpha/kernel/osf_sys.c ===

[PATCH 3/12] get_unmapped_area handles MAP_FIXED on arm

2007-04-11 Thread Benjamin Herrenschmidt
ARM already had a case for MAP_FIXED in arch_get_unmapped_area() though it was not called before. Fix the comment to reflect that it will now be called. Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> arch/arm/mm/mmap.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) Index:

[PATCH 1/12] get_unmapped_area handles MAP_FIXED on powerpc

2007-04-11 Thread Benjamin Herrenschmidt
Handle MAP_FIXED in powerpc's arch_get_unmapped_area() in all 3 implementations of it. Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> arch/powerpc/mm/hugetlbpage.c | 21 + 1 file changed, 21 insertions(+) Index: linux-cell/arch/powerpc/mm/hugetlbpage.c =

[PATCH 0/12] Pass MAP_FIXED down to get_unmapped_area

2007-04-11 Thread Benjamin Herrenschmidt
This is a "first step" as there are still cleanups to be done in various areas touched by that code but I think it's probably good to go as is and at least enables me to implement what I need for PowerPC. (Andrew, this is also candidate for 2.6.22 since I haven't had any real objection, mostly sug

Re: [PATCH 7/8] Clean up workqueue.c with respect to the freezer based cpu-hotplug

2007-04-11 Thread Srivatsa Vaddagiri
On Tue, Apr 03, 2007 at 10:48:20PM +0530, Srivatsa Vaddagiri wrote: > > Actually, we should do this before destroy_workqueue() calls > > flush_workqueue(). > > Otherwise flush_cpu_workqueue() can hang forever in a similar manner. > > Yep. I guess these are a class of freezer deadlocks very simila

[ANNOUNCE] GIT 1.5.1.1

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

Re: [PATCH, take4] FUTEX : new PRIVATE futexes

2007-04-11 Thread Nick Piggin
Eric Dumazet wrote: On Wed, 11 Apr 2007 19:23:26 +1000 Nick Piggin <[EMAIL PROTECTED]> wrote: As this external thing certainly is not doing the check itself, to be on the safe side we should enforce it in get_futex_key(). I agree with you : If we want to maximize performance, we could say :

Re: If not readdir() then what?

2007-04-11 Thread Neil Brown
On Wednesday April 11, [EMAIL PROTECTED] wrote: > > Actually, no, we can't keep the collision chain count stable across a > create/delete even while the tree is cached. At least, not without > storing a huge amount of state associated with each page. (It would > be a lot more work than simply ha

[PATCH] fix bogon in /dev/mem mmap'ing on nommu

2007-04-11 Thread Benjamin Herrenschmidt
While digging through my MAP_FIXED changes, I found that rather obvious bug in /dev/mem mmap implementation for nommu archs. get_unmapped_area() is expected to return an address, not a pfn. Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> --- I suppose that can go in anytime, and probabl

Re: [PATCH 9/10] Vmi timer update.patch

2007-04-11 Thread Zachary Amsden
Chris Wright wrote: * Zachary Amsden ([EMAIL PROTECTED]) wrote: +void __init vmi_time_init(void) +{ + /* Disable PIT: BIOSes start PIT CH0 with 18.2hz peridic. */ + outb_p(0x3a, PIT_MODE); /* binary, mode 5, LSB/MSB, ch 0 */ That shouldn't be necessary using clockevents.

Re: Security computation within Linux kernel

2007-04-11 Thread H. Peter Anvin
Carlo Florendo wrote: IIRC, The kernel does some encryption functions, involving TCP, NFS, and IPsec since all these are part of the kernel itself. Yes, but key management is done in userspace. -hpa - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the bo

Re: Security computation within Linux kernel

2007-04-11 Thread Carlo Florendo
JanuGerman wrote: Hi every one, I have one question regarding security libraries, already shipped with Linux Kernel. That is, all PKI, RSA libraries, as provided by OpenSSL are already integrated within the linux kernel source code? OR, one have to use OpenSSL seperately in this regard. IIRC,

Re: "menu" versus "menuconfig" -- they're *both* a bad idea

2007-04-11 Thread Carlo Florendo
Robert P. J. Day wrote: (in short, if i, the builder, explicitly choose *not* to add a certain feature to my build, i think i have every right to expect that some other part of my configuration isn't quietly going to put some sub-choice of that feature back in behind my back.) I agree with th

Re: [PATCH 1/7] [RFC] External power framework

2007-04-11 Thread Anton Vorontsov
> diff --git a/drivers/Kconfig b/drivers/Kconfig > index 050323f..c546de3 100644 I've forgot to pass -s flag to git-format-patch. :-/ Please count it for whole x/7 patch set: Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> - To unsubscribe from this list: send the line "unsubscribe linux-kern

RE: [PATCH] kernel-doc: fix plist.h comments

2007-04-11 Thread Perez-Gonzalez, Inaky
>From: Randy Dunlap <[EMAIL PROTECTED]> > >Make kernel-doc comments match macro names. >Correct parameter names in a few places. >Remove '#' from beginning of kernel-doc comment macro names. >Remove extra (erroneous) blank lines in kernel-doc. > > ... > >cc: Inaky Perez-Gonzalez <[EMAIL PROTECTED]>

Re: [PATCH] i386 tsc: remove xtime_lock'ing around cpufreq notifier

2007-04-11 Thread Andrew Morton
On Wed, 11 Apr 2007 14:33:57 -0700 Andrew Morton <[EMAIL PROTECTED]> wrote: > > Here is the call ordering , > > > > ktime_get() > > ktime_get_ts() -> read_seqretry(&xtime_lock, seq) > > getnstimeofday() > >__get_realtime_clock_ts() -> read_seqretry(&xtime_lock, seq) > > > > > > I wonder

[PATCH] kernel-doc: fix plist.h comments

2007-04-11 Thread Randy Dunlap
From: Randy Dunlap <[EMAIL PROTECTED]> Make kernel-doc comments match macro names. Correct parameter names in a few places. Remove '#' from beginning of kernel-doc comment macro names. Remove extra (erroneous) blank lines in kernel-doc. Warning(plist.h:100): Cannot understand * #PLIST_HEAD_INIT

RE: Help Understanding Linux memory management

2007-04-11 Thread David Schwartz
> 1) When physical memory runs low, the memory manager will try to use > memory currently allocated to the pagecache. Is this true? Yes. > 2) When vm.overcommit_memory = 2 (overcommit disabled), and memory runs > low, it appears that the memory manager does not try to use memory > currently all

Re: [PATCH] markers-linker-generic

2007-04-11 Thread Vara Prasad
Jim Keniston wrote: On Wed, 2007-04-11 at 15:21 -0400, Mathieu Desnoyers wrote: * Andrew Morton ([EMAIL PROTECTED]) wrote: On Wed, 11 Apr 2007 13:51:11 -0400 Mathieu Desnoyers <[EMAIL PROTECTED]> wrote: What's this marker stuff about? Hi Russel, Here is an overvi

One odd thing about Synaptics

2007-04-11 Thread Pete Zaitcev
Hi, Peter: There's one thing I wanted to report, just in case... It does not affect anything, but it's odd. Every time I lift a finger from the pad, the driver sends an event with odd values (X is 1 and Y is 5855): Event: time 1174695694.561806, type 1 (Key), code 330 (Touch), value 0 Event: tim

Re: If not readdir() then what?

2007-04-11 Thread Neil Brown
On Wednesday April 11, [EMAIL PROTECTED] wrote: > On Thu, 12 Apr 2007, Neil Brown wrote: > > > For the second. > > You say that you " would need at least 96 bits in order to make that > > guarantee; 64 bits of hash, plus a 32-bit count value in the hash > > collision chain". I think 96 is a bi

[PATCH 7/7] [RFC] APM emulation driver for class batteries

2007-04-11 Thread Anton Vorontsov
It finds battery with "main_battery" flag set (or with max_capacity if no batteries marked as main), and converts battery values to APM form. --- drivers/battery/Kconfig |7 +++ drivers/battery/Makefile|1 + drivers/battery/apm_power.c | 121 ++

[PATCH 6/7] [RFC] ds2760 battery driver

2007-04-11 Thread Anton Vorontsov
This is driver for batteries with ds2760 chip inside. Such batteries used in almost every HP iPaq and HTC PDAs/phones. --- drivers/battery/Kconfig |7 + drivers/battery/Makefile |1 + drivers/battery/ds2760_battery.c | 466 ++ include/

[PATCH] [Trivial] [Doc] Add webpages' URL and summarize 3 lines.

2007-04-11 Thread Miguel Ojeda
Trivial patch, against -rc6. Please apply, thanks. --- CREDITS: - Summarize 3 lines into one. - Add webpage. MAINTAINERS: - Add auxdisplay drivers/tree webpages. CREDITS |7 +++ MAINTAINERS |4 2 files changed, 7 insertions(+), 4 deletions(-) Signed-off-by: Miguel Ojeda Sand

Re: If not readdir() then what?

2007-04-11 Thread Jörn Engel
On Wed, 11 April 2007 16:23:21 -0700, H. Peter Anvin wrote: > David Lang wrote: > >On Thu, 12 Apr 2007, Neil Brown wrote: > > > >>For the second. > >> You say that you " would need at least 96 bits in order to make that > >> guarantee; 64 bits of hash, plus a 32-bit count value in the hash > >> col

[PATCH 5/7] [RFC] ds2760 W1 slave

2007-04-11 Thread Anton Vorontsov
This is W1 slave for ds2760 chip, found inside almost every HP iPaq and HTC PDAs/phones. --- drivers/w1/slaves/Kconfig | 13 +++ drivers/w1/slaves/Makefile|1 + drivers/w1/slaves/w1_ds2760.c | 162 + drivers/w1/slaves/w1_ds2760.h | 52 +

[patch] x86_64: more fixes to node_possible_map runtime setup

2007-04-11 Thread Siddha, Suresh B
On Mon, Apr 09, 2007 at 04:13:28PM -0700, Siddha, Suresh B wrote: > On Mon, Apr 09, 2007 at 03:05:01PM -0700, [EMAIL PROTECTED] wrote: > > Subject: x86_64-set-node_possible_map-at-runtime fix > > From: David Rientjes <[EMAIL PROTECTED]> > > > > Clear node_possible_map if numa_emulation() fails for

[PATCH 4/7] [RFC] remove "#if 0" around find_bus function, export it.

2007-04-11 Thread Anton Vorontsov
This function were placed in "#if 0" because nobody was using it. We do use. See http://lwn.net/Articles/210610/ --- drivers/base/bus.c |5 ++--- include/linux/device.h |2 ++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/base/bus.c b/drivers/base/bus.c index

[PATCH 3/7] [RFC] Battery monitoring class

2007-04-11 Thread Anton Vorontsov
Here is battery monitor class. According to first copyright string, we're maintaining it since 2003. I've took few days and cleaned it up to be more suitable for mainline inclusion. It differs from battery class at git://git.infradead.org/battery-2.6.git: * It's using external power kernel interf

[PATCH 1/7] [RFC] External power framework

2007-04-11 Thread Anton Vorontsov
External power framework - power supplies and power supplicants. Supplicants (batteries so far) may ask to notify they when power supply arrive/gone. This framework used by battery class (next patches). It's permitted for supply to be bound to several supplicants (think main and backup batteries)

[PATCH 2/7] [RFC] Common power driver for Linux gadgets

2007-04-11 Thread Anton Vorontsov
This driver used to stop code/logic duplication through different machines we porting at handhelds.org. pda_power register machs' power supplies, and will take care about notifying batteries about power changes through external power interface. This driver should be suitable for almost every Linux

Re: If not readdir() then what?

2007-04-11 Thread H. Peter Anvin
David Lang wrote: On Thu, 12 Apr 2007, Neil Brown wrote: For the second. You say that you " would need at least 96 bits in order to make that guarantee; 64 bits of hash, plus a 32-bit count value in the hash collision chain". I think 96 is a bit greedy. Surely 48 bits of hash and 16 bits

Re: 2.6.21-rc6-mm1 USB related boot hang

2007-04-11 Thread Andrew Morton
On Thu, 12 Apr 2007 01:07:00 +0200 Helge Hafting <[EMAIL PROTECTED]> wrote: > On Wed, Apr 11, 2007 at 01:43:46PM -0700, Andrew Morton wrote: > > > > OK. If you add initcall_debug to the kernel boot command line, what's the > > last thing we call? > > The last messages (handwritten, somewhat sho

Re: If not readdir() then what?

2007-04-11 Thread Theodore Tso
On Thu, Apr 12, 2007 at 08:32:05AM +1000, Neil Brown wrote: > For the first: > You are storing an internal tree representation of part of the > directory attached to the 'struct file'. > Would it be possible to store this attached to the page via the > ->private pointer? What would avoid t

[patch 10/31] HID: Do not discard truncated input reports

2007-04-11 Thread Greg KH
-stable review patch. If anyone has any objections, please let us know. -- From: Adam Kropelin <[EMAIL PROTECTED]> HID: Do not discard truncated input reports Truncated reports should not be discarded since it prevents buggy devices from communicating with userspace. Prior to t

Re: 2.6.21-rc6-mm1 USB related boot hang

2007-04-11 Thread Helge Hafting
On Wed, Apr 11, 2007 at 01:43:46PM -0700, Andrew Morton wrote: > > OK. If you add initcall_debug to the kernel boot command line, what's the > last thing we call? The last messages (handwritten, somewhat shortened) calling hid_init+0x0/0x10() returned 0 ran for 0 msec calling hid_init+0x0/0x50()

[patch 11/31] Fix calculation for size of filemap_attr array in md/bitmap.

2007-04-11 Thread Greg KH
-stable review patch. If anyone has any objections, please let us know. -- From: Neil Brown <[EMAIL PROTECTED]> If 'num_pages' were ever 1 more than a multiple of 8 (32bit platforms) for of 16 (64 bit platforms). filemap_attr would be allocated one 'unsigned long' shorter than re

[patch 09/31] DVB: pluto2: fix incorrect TSCR register setting

2007-04-11 Thread Greg KH
-stable review patch. If anyone has any objections, please let us know. -- From: Andreas Oberritter <[EMAIL PROTECTED]> DVB: pluto2: fix incorrect TSCR register setting The ADEF bits in the TSCR register have different meanings in read and write mode. For this reason ADEF has to

[patch 07/31] sky2: phy workarounds for Yukon EC-U A1

2007-04-11 Thread Greg KH
-stable review patch. If anyone has any objections, please let us know. -- From: Stephen Hemminger <[EMAIL PROTECTED]> The workaround Yukon EC-U wasn't comparing with correct version and wasn't doing correct setup. Without it, 88e8056 throws all sorts of errors. Signed-off-by: S

[patch 14/31] Fix IFB net driver input device crashes

2007-04-11 Thread Greg KH
-stable review patch. If anyone has any objections, please let us know. -- From: Patrick McHardy <[EMAIL PROTECTED]> [IFB]: Fix crash on input device removal The input_device pointer is not refcounted, which means the device may disappear while packets are queued, causing a cras

[patch 12/31] 8139too: RTNL and flush_scheduled_work deadlock

2007-04-11 Thread Greg KH
-stable review patch. If anyone has any objections, please let us know. -- From: Francois Romieu <[EMAIL PROTECTED]> Your usual dont-flush_scheduled_work-with-RTNL-held stuff. It is a bit different here since the thread runs permanently or is only occasionally kicked for recover

[patch 06/31] sky2: turn on clocks when doing resume

2007-04-11 Thread Greg KH
-stable review patch. If anyone has any objections, please let us know. -- From: Stephen Hemminger <[EMAIL PROTECTED]> Some of these chips are disabled until clock is enabled. This fixes: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=404107 Signed-off-by: Stephen Hemming

[patch 05/31] sky2: turn carrier off when down

2007-04-11 Thread Greg KH
-stable review patch. If anyone has any objections, please let us know. -- From: Stephen Hemminger <[EMAIL PROTECTED]> Driver needs to turn off carrier when down. Signed-off-by: Stephen Hemminger <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- dri

[patch 20/31] Fix TCP slow_start_after_idle sysctl

2007-04-11 Thread Greg KH
-stable review patch. If anyone has any objections, please let us know. -- From: David Miller <[EMAIL PROTECTED]> [TCP]: slow_start_after_idle should influence cwnd validation too For the cases that slow_start_after_idle are meant to deal with, it is almost a certainty that the

[patch 22/31] knfsd: allow nfsd READDIR to return 64bit cookies

2007-04-11 Thread Greg KH
-stable review patch. If anyone has any objections, please let us know. -- From: Neil Brown <[EMAIL PROTECTED]> [PATCH] knfsd: allow nfsd READDIR to return 64bit cookies ->readdir passes lofft_t offsets (used as nfs cookies) to nfs3svc_encode_entry{,_plus}, but when they pass it

[patch 18/31] Fix IPSEC replay window handling

2007-04-11 Thread Greg KH
-stable review patch. If anyone has any objections, please let us know. -- From: Herbert Xu <[EMAIL PROTECTED]> [IPSEC]: Reject packets within replay window but outside the bit mask Up until this point we've accepted replay window settings greater than 32 but our bit mask can on

  1   2   3   4   5   >