Re: [PATCH] swsusp: Use platform mode by default

2007-05-11 Thread Coywolf Qi Hunt
Hello, (This patch is merged in 2.6.20 as commit 9185cfa92507d07ac787bc73d06c4eec7239) With this patch, my desktop no longer powers off after hibernate(8). It just reboots. This user land fix can restore the old behavior: echo shutdown > /sys/power/disk The commit causes user land breakage

Re: A couple of OOM killer races

2005-09-07 Thread Coywolf Qi Hunt
no protection when we set p->time_slice in > __oom_kill_task(). Am I right in thinking that this field should be > protected by the appropriate runqueue lock, at least this is what > scheduler_tick() seems to use? ditto -- Coywolf Qi Hunt http://sosdg.org/~coywolf/ - To unsubscribe f

Re: Prefetch kernel stacks to speed up context switch

2005-09-07 Thread Coywolf Qi Hunt
interface. > > Andrew, please consider -mm inclusion. Or advise me what I need > to do to take this forward. Thanks. > > - Ken Do you have any benchmarks? -- Coywolf Qi Hunt http://sosdg.org/~coywolf/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel&qu

Re: [PATCH 1/4] cpusets oom_kill tweaks

2005-09-01 Thread Coywolf Qi Hunt
imary goal in writing code is to minimize the time and effort > it will take a typical reader to properly understand the code. > I write first and foremost for humans. Hmm, I really wish xfs guys follow that too. -- Coywolf Qi Hunt http://sosdg.org/~coywolf/ - To unsubscribe from this list: s

Re: [PATCH 1/4] cpusets oom_kill tweaks

2005-09-01 Thread Coywolf Qi Hunt
; > This patch should have no material affect. Why bother to have just added a variable, `releasing'? -- Coywolf Qi Hunt http://sosdg.org/~coywolf/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majo

Re: syscall: sys_promote

2005-08-29 Thread Coywolf Qi Hunt
Bernd Petrovitsch wrote: On Mon, 2005-08-29 at 11:55 +0800, qiyong wrote: Erik Mouw wrote: On Fri, Aug 26, 2005 at 05:25:37PM +0800, Coywolf Qi Hunt wrote: I just wrote a tool with kernel patch, which is to set the uid's of a running process without FORK. The tool is at

Re: syscall: sys_promote

2005-08-26 Thread Coywolf Qi Hunt
On Fri, Aug 26, 2005 at 05:25:37PM +0800, Coywolf Qi Hunt wrote: > Hello, > > I just wrote a tool with kernel patch, which is to set the uid's of a running > process without FORK. > > The tool is at http://users.freeforge.net/~coywolf/pub/promote/ > Usage: promote [ui

syscall: sys_promote

2005-08-26 Thread Coywolf Qi Hunt
cess instead of killing it. Is it also generally useful in practice? Thoughts? Coywolf Signed-off-by: Coywolf Qi Hunt <[EMAIL PROTECTED]> --- arch/i386/kernel/syscall_table.S |1 + include/linux/syscalls.h |1 + kernel/sys.c | 19 +++

[patch] alloc_buffer_head() and free_buffer_head() cleanup

2005-08-25 Thread Coywolf Qi Hunt
On Thu, Aug 25, 2005 at 04:37:51PM +0800, Coywolf Qi Hunt wrote: > Hello, > > This cleanups up alloc_buffer_head(), by using a single get_cpu_var(). > Boot tested. Also cleanup free_buffer_head(). Coywolf Signed-off-by: Coywolf Qi Hunt <[EMAIL PROTECTED]> ---

Re: [PATCH] VFS: update documentation

2005-08-25 Thread Coywolf Qi Hunt
(2) system call > + > + check_flags: called by the fcntl(2) system call for F_SETFL command > + > + dir_notify: called by the fcntl(2) system call for F_NOTIFY command > + > + flock: called by the flock(2) system call > + -- Coywolf Qi Hunt http://ahbl.org/~coywolf/ - To uns

[patch] bh_lru_install() optimize

2005-08-25 Thread Coywolf Qi Hunt
ff-by: Coywolf Qi Hunt <[EMAIL PROTECTED]> --- buffer.c | 17 ++--- 1 files changed, 6 insertions(+), 11 deletions(-) --- 2.6.13-rc6-mm2/fs/buffer.c~orig 2005-08-23 13:42:04.0 +0800 +++ 2.6.13-rc6-mm2/fs/buffer.c 2005-08-25 16:04:21.0 +0800 @@ -1356,7 +1356,

[patch] alloc_buffer_head() cleanup

2005-08-25 Thread Coywolf Qi Hunt
Hello, This cleanups up alloc_buffer_head(), by using a single get_cpu_var(). Boot tested. Coywolf Signed-off-by: Coywolf Qi Hunt <[EMAIL PROTECTED]> --- buffer.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) --- 2.6.13-rc6-mm2/fs/buffer.c~orig 2005-08-23

[proposal] remove struct file *file from aops

2005-08-23 Thread Coywolf Qi Hunt
Hello, The argument struct file *file in aops { .readpage, .readpages, prepare_write, .commit_wirte } is not used. I'd like to file a series of patches to clean it up. Are there any other concerns? thanks -- Coywolf Qi Hunt http://ahbl.org/~coywolf/ - To unsubscribe from this list: sen

Re: [PATCH] make loglevels in init/main.c a little more sane.

2005-08-22 Thread Coywolf Qi Hunt
On Mon, Aug 22, 2005 at 01:17:59PM +0800, Coywolf Qi Hunt wrote: > On 1/23/05, Jesper Juhl <[EMAIL PROTECTED]> wrote: > > > > This patch modifies a few of the printk() loglevels used in init/main.c in > > an attempt to make them a bit more appropriate. >

Re: [PATCH] make loglevels in init/main.c a little more sane.

2005-08-22 Thread Coywolf Qi Hunt
kage void __init start_kernel(void > */ > lock_kernel(); > page_address_init(); > + printk(KERN_NOTICE); > printk(linux_banner); Why not merge it to the same line? > setup_arch(&command_line); > setup_per_cpu_areas();

Re: Make pipe data structure be a circular list of pages, rather than

2005-08-17 Thread Coywolf Qi Hunt
for something like > > tar cvf - my_source_tree | hw_engine_encrypt | splice_to_network > > and the whole pipeline would not have a _single_ actual data copy: the > pipes are channels. > > Of course, since it's a pipe, the nice thing is that people don't have

Re: [PATCH] struct file cleanup : the very large file_ra_state is now allocated only on demand.

2005-08-17 Thread Coywolf Qi Hunt
now allocated only on > demand, using a dedicated "file_ra" slab. > 64bits machines handling lot of sockets can save about 72 bytes per > file. > * private_data : The field is moved close to f_count and f_op fields to > speedup sockfd_lookups Why not keep the comme

Re: oops in kernel 2.6.11.10

2005-08-15 Thread Coywolf Qi Hunt
hanks. > > > > Coywolf > > Stephane > -- > Stephane Wirtel <[EMAIL PROTECTED]> > > -- Coywolf Qi Hunt http://ahbl.org/~coywolf/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL P

Re: oops in kernel 2.6.11.10

2005-08-15 Thread Coywolf Qi Hunt
0x14 > May 28 04:08:14 nova [] > autoremove_wake_function+0x0/0x60 > May 28 04:08:14 nova [] kswapd+0x0/0x140 > May 28 04:08:14 nova [] > kernel_thread_helper+0x5/0x10 > May 28 04:08:14 nova Code: 00 00 00 00 8d bc 27 00 00 > 00 00 55 57 56 53 83 ec 04 8b 6c 24 18 8b 45 00 f6

Re: [patch] unexport __mntput()

2005-08-14 Thread Coywolf Qi Hunt
On 8/15/05, Mike Waychison <[EMAIL PROTECTED]> wrote: > Coywolf Qi Hunt wrote: > > Hello, > > > > Unexport __mntput() was talked about two months ago. > > http://lkml.org/lkml/2005/6/9/69 > > Modules should not call __mntput() directly. If autofs or nfs

[patch] unexport __mntput()

2005-08-14 Thread Coywolf Qi Hunt
Hello, Unexport __mntput() was talked about two months ago. http://lkml.org/lkml/2005/6/9/69 Modules should not call __mntput() directly. If autofs or nfsd does that, it's being wrong. Coywolf Signed-off-by: Coywolf Qi Hunt <[EMAIL PROTECTED]> --- 2.6.13-rc6/fs/

Re: Need help in understanding x86 syscall

2005-08-11 Thread Coywolf Qi Hunt
but not VIA C3 Ezla). > . > This package includes support for NPTL. > . Even with libc6-i686 installed, I can't see sysenter got used. libc6-i686 has /lib/tls/i686/cmov/libc.so.6, not the one /lib/libc-2.3.5.so. mozilla gets: Illegal instruction I've added ud2 in both entry.S a

Re: Need help in understanding x86 syscall

2005-08-11 Thread Coywolf Qi Hunt
On 8/12/05, Coywolf Qi Hunt <[EMAIL PROTECTED]> wrote: > On 8/12/05, Steven Rostedt <[EMAIL PROTECTED]> wrote: > > On Thu, 2005-08-11 at 11:51 -0400, Steven Rostedt wrote: > > > > > > And booted it. The system is up and running, so I really don't thi

Re: Need help in understanding x86 syscall

2005-08-11 Thread Coywolf Qi Hunt
: no > fpu : yes > fpu_exception : yes > cpuid level : 2 > wp : yes > flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge > mca cmov pat pse36 mmx fxsr sse > bogomips: 722.94 > > > -- Steve > The cpu doe

Re: [PATCH] remove name length check in a workqueue

2005-08-11 Thread Coywolf Qi Hunt
ues anyway. So we could do: > > if (singlethread) > BUG_ON(strlen(name) > sizeof(task_struct.comm) - 1); > else > BUG_ON(strlen(name) > sizeof(task_struct.comm) - 1 - 4); > > which gets you 10,000,000 HBAs. Enough? > &

Re: Need help in understanding x86 syscall

2005-08-11 Thread Coywolf Qi Hunt
> I'm looking at 2.6.13-rc6-git1 line 182 of entry.S and I don't see it. > Must be a different kernel. > > According to the documentation that I was looking at, a trap in x86 does > _not_ turn off interrupts. > ... > > I don't see a sti here. > > --

Re: How to reclaim inode pages on demand

2005-08-11 Thread Coywolf Qi Hunt
ge->mapping NULL? > > > > mm.h:page_mapping() handles all that. at http://sosdg.org/~coywolf/lxr/source/include/linux/mm.h#L561 Should the comment be s/page_mapped/page->mapping/ ? -- Coywolf Qi Hunt http://ahbl.org/~coywolf/ - 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 FAQ at http://www.tux.org/lkml/

Re: include-linux-blkdevh-extern-inline-static-inline.patch added to -mm tree

2005-07-28 Thread Coywolf Qi Hunt
On 7/29/05, Coywolf Qi Hunt <[EMAIL PROTECTED]> wrote: > On 7/29/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > The patch titled > > > > include/linux/blkdev.h: "extern inline" -> "static inline" > > > > h

Re: include-linux-blkdevh-extern-inline-static-inline.patch added to -mm tree

2005-07-28 Thread Coywolf Qi Hunt
gt; @@ -727,7 +727,7 @@ static inline unsigned int blksize_bits( > return bits; > } > > -extern inline unsigned int block_size(struct block_device *bdev) > +static inline unsigned int block_size(struct block_device *bdev) > { > return bdev->bd_block_size; &g

Re: [PATCH] turn many #if $undefined_string into #ifdef $undefined_string

2005-07-23 Thread Coywolf Qi Hunt
; Shouldn't that be "#if defined($undefined_string)"? > > #ifdef is obsolete... > What leads you to believe that? -- Coywolf Qi Hunt http://ahbl.org/~coywolf/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL

[patch] kbuild: make help binrpm-pkg fix

2005-07-19 Thread Coywolf Qi Hunt
On Tue, Jul 19, 2005 at 10:21:30PM +0800, Coywolf Qi Hunt wrote: > On 7/15/05, Andrew Morton <[EMAIL PROTECTED]> wrote: > > > > > > Changes since 2.6.13-rc2-mm2: > > > > > > git-drm.patch > > git-audit.patch > > git-input.patch >

Re: 2.6.13-rc3-mm1

2005-07-19 Thread Coywolf Qi Hunt
On 7/15/05, Andrew Morton <[EMAIL PROTECTED]> wrote: > > > Changes since 2.6.13-rc2-mm2: > > > git-drm.patch > git-audit.patch > git-input.patch > git-kbuild.patch make help br0ken, missing matching `'' for binrpm-pkg. -- Coywolf Qi Hunt http

[patch] add copy_to_user result check

2005-07-17 Thread Coywolf Qi Hunt
hello, GCC warns me this problem. This patch adds copy_to_user result check in sys_select() and sys_pselect7(). Signed-off-by: Coywolf Qi Hunt <[EMAIL PROTECTED]> --- diff -pruN 2.6.13-rc3-mm1/fs/select.c 2.6.13-rc3-mm1-cy1/fs/select.c --- 2.6.13-rc3-mm1/fs/select.c 2005-07-15

Re: halt: init exits/panic

2005-07-09 Thread Coywolf Qi Hunt
_exit(0) > > Is this exit() call wrong? If I do RB_HALT_SYSTEM and _exit(0) after, > the kernel panics. What the panic shows? -- Coywolf Qi Hunt http://ahbl.org/~coywolf/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL

Re: Swap partition vs swap file

2005-07-07 Thread Coywolf Qi Hunt
just keep using the same blocks over and over? i.e. if it's > > all contiguous when you first create the swapfile, will it stay that > > way for the life of the file? > > The latter. Create the swapfile when the filesystem is young and empty, I guess/hope dd always makes it c

Re: patch to create sysfs char device nodes

2005-07-04 Thread Coywolf Qi Hunt
comments. I encountered the same problem days ago. Thanks for the patch. A patch based on yours will be sent in the next mail. -- Coywolf Qi Hunt http://ahbl.org/~coywolf/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EM

Re: Kernel module_list

2005-04-14 Thread Coywolf Qi Hunt
On Thu, Apr 14, 2005 at 08:48:42PM +, Allison wrote: > I am trying to simply print out the module names and code sizes. > I am just learning how to rtraverse these data structures. Just read /proc/modules Coywolf > > Also, on what basis is the decision made whether to export a symbo

Re: Kernel messages

2005-04-14 Thread Coywolf Qi Hunt
mask=0x1d2 > 1 Time(s): protections[]: 0 0 0 > 1 Time(s): protections[]: 0 238 238 > 1 Time(s): protections[]: 14 252 252 > > Cheers, > > Iwan Sanders > Yes, oom, and your kernel is a bit old. -- Coywolf Qi Hunt http://sosdg.org/~coywolf/ - To unsubscribe from this list

Re: [patch 006/198] arm: add comment about max_low_pfn/max_pfn

2005-04-12 Thread Coywolf Qi Hunt
FYI http://lkml.org/lkml/2004/6/29/57 On 4/13/05, Coywolf Qi Hunt <[EMAIL PROTECTED]> wrote: > I told rmk about this long time ago. > > On 4/12/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > From: Russell King <[EMAIL PROTECTED]> > > &g

Re: [patch 006/198] arm: add comment about max_low_pfn/max_pfn

2005-04-12 Thread Coywolf Qi Hunt
* Note: max_low_pfn and max_pfn reflect the number > +* of _pages_ in the system, not the maximum PFN. > */ > max_low_pfn = memend_pfn - O_PFN_DOWN(PHYS_OFFSET); > max_pfn = memend_pfn - O_PFN_DOWN(PHYS_OFFSET); > _ -- Coywolf Qi Hunt http://sosdg.org/~coywolf/

[patch] reparent_to_init-cleanup

2005-04-11 Thread Coywolf Qi Hunt
Hello, Split out from my oom-killer patch, this patch hides reparent_to_init(). reparent_to_init() should only be called by daemonize(). This applies to 2.6.12-rc2-mm2 too. Signed-off-by: Coywolf Qi Hunt <[EMAIL PROTECTED]> --- arch/i386/mach-voyager/voyager_thread.c |1 - include

Re: 2.6.12-rc1-mm4

2005-03-31 Thread Coywolf Qi Hunt
Andrew Morton wrote: ... make-sysrq-f-call-oom_kill.patch make sysrq-F call oom_kill() Glad to see it fixed. :) - 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.htm

Re: [patch] oom lca -- fork bombing killer

2005-03-30 Thread Coywolf Qi Hunt
Andrew Morton wrote: Coywolf Qi Hunt <[EMAIL PROTECTED]> wrote: Linux OOM LCA (Least Common Ancestor) Patch ... --- 2.6.12-rc1-mm3/include/linux/sched.h 2005-03-26 13:21:11.0 +0800 +++ 2.6.12-rc1-mm3-cy/include/linux/sched.h 2005-03-28 10:18:24.0

Re: Can't use SYSFS for "Proprietry" driver modules !!!.

2005-03-28 Thread Coywolf Qi Hunt
Lee Revell wrote: On Sat, 2005-03-26 at 10:28 -0800, Greg KH wrote: On Sat, Mar 26, 2005 at 05:52:20PM +, Mark Fortescue wrote: I am writing a "Proprietry" driver module for a "Proprietry" PCI card and I have found that I can't use SYSFS on Linux-2.6.10. Why ?. What ever gave you the impressio

Re: Kernel OOOPS in 2.6.11.6

2005-03-28 Thread Coywolf Qi Hunt
On Mon, 28 Mar 2005 15:04:16 -0800, Chris Wright <[EMAIL PROTECTED]> wrote: > * Coywolf Qi Hunt ([EMAIL PROTECTED]) wrote: > > On Mon, 28 Mar 2005 14:44:30 -0800, Chris Wright <[EMAIL PROTECTED]> wrote: > > > * Ali Akcaagac ([EMAIL PROTECTED]) wrote: > > >

Re: Kernel OOOPS in 2.6.11.6

2005-03-28 Thread Coywolf Qi Hunt
ks like it's meant to be used to mean > uninitialized). May check with XFS folks if they've seen this type > of bug. I think it is f = kmem_cache_alloc(filp_cachep, GFP_KERNEL); returns an invalid pointer, then in memset(f, 0, sizeof(*f)); fault happens at address f. eax == 0 is to clear the memory in memset(). -- Coywolf Qi Hunt http://sosdg.org/~coywolf/ - 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 FAQ at http://www.tux.org/lkml/

[patch] oom lca -- fork bombing killer

2005-03-27 Thread Coywolf Qi Hunt
March 28, 2005 Coywolf Qi Hunt [EMAIL PROTECTED] Linux OOM LCA (Least Common Ancestor) Patch

[patch] remove CONFIG_PM_DISK

2005-03-25 Thread Coywolf Qi Hunt
Hello, Pmdisk was merged in a few months ago. This removes CONFIG_PM_DISK for conditional compilation. Coywolf Signed-off-by: Coywolf Qi Hunt <[EMAIL PROTECTED]> --- diff -pruN 2.6.11-mm4/arch/i386/defconfig 2.6.11-mm4-cy/arch/i386/defconfig --- 2.6.11-mm4/arch/i386/def

Re: [patch] oom-killer sysrq-f fix

2005-03-24 Thread Coywolf Qi Hunt
On Thu, Mar 24, 2005 at 05:21:27PM -0800, Andrew Morton wrote: > Coywolf Qi Hunt <[EMAIL PROTECTED]> wrote: > > > > >>--- 2.6.12-rc1-mm2/mm/oom_kill.c 2005-03-03 17:12:18.0 +0800 > > >>+++ 2.6.12-rc1-mm2-cy/mm/oom_kill.c 2005-03-25 08:07:1

Re: [patch] oom-killer sysrq-f fix

2005-03-24 Thread Coywolf Qi Hunt
Andrew Morton wrote: Coywolf Qi Hunt <[EMAIL PROTECTED]> wrote: Recent make-sysrq-f-call-oom_kill.patch calls oom-killer in interrupt context, thus results into panic. This patch fixes out_of_memory() to avoid schedule when in interrupt context. Coywolf Signed-off-by: Coywolf Q

[patch] oom-killer sysrq-f fix

2005-03-24 Thread Coywolf Qi Hunt
patch fixes out_of_memory() to avoid schedule when in interrupt context. Coywolf Signed-off-by: Coywolf Qi Hunt <[EMAIL PROTECTED]> diff -pruN 2.6.12-rc1-mm2/mm/oom_kill.c 2.6.12-rc1-mm2-cy/mm/oom_kill.c --- 2.6.12-rc1-mm2/mm/oom_kill.c2005-03-03 17:12:18.0 +0800 +++

Re: [patch] SUSPEND_PD_PAGES-fix

2005-03-18 Thread Coywolf Qi Hunt
description was wrong. Coywolf Ok, applied to my tree, will eventually propagate it. (I hope it looks okay to you, rafael). Signed-off-by: Coywolf Qi Hunt <[EMAIL PROTECTED]> diff -pruN 2.6.11-mm4/include/linux/suspend.h 2.6.11-mm4-cy/include/linux/suspend.h --- 2.6.11-mm4/include

Re: oom with 2.6.11

2005-03-17 Thread Coywolf Qi Hunt
suppose each script consumes 100k, that'll be 100k*4k=400M roughly. And your box's is merely 256M MemTotal. The currently oom algorithm fails to find out such kinds of memory hog. And the kernel kills other innocent processes because the its points is much lower than most others. C

Re: Kernel memory limits?

2005-03-17 Thread Coywolf Qi Hunt
linux-os wrote: On Thu, 17 Mar 2005, Peter W. Morreale wrote: (I did not see this addressed in the FAQs...) How much physical memory can the 2.4.26 kernel address in kernel context on x86? All of it. What about DMA memory? All of it, too. The old DMA controller(s) could only address 16 MB because

[patch] SUSPEND_PD_PAGES-fix

2005-03-16 Thread Coywolf Qi Hunt
Hello, This fixes SUSPEND_PD_PAGES, which wastes one page under most cases. Coywolf Signed-off-by: Coywolf Qi Hunt <[EMAIL PROTECTED]> diff -pruN 2.6.11-mm4/include/linux/suspend.h 2.6.11-mm4-cy/include/linux/suspend.h --- 2.6.11-mm4/include/linux/suspend.h 2005-03-17

Re: [patch] oom_kill fix

2005-03-15 Thread Coywolf Qi Hunt
On Mon, 14 Mar 2005 18:02:58 -0800, Andrew Morton <[EMAIL PROTECTED]> wrote: > Coywolf Qi Hunt <[EMAIL PROTECTED]> wrote: > > > > This oom_kill fix is to do mmput(mm) a bit earlier and returning 0 or 1 > > to indicate success or failure instead of returning mm_s

[patch] oom_kill fix

2005-03-14 Thread Coywolf Qi Hunt
Hello, This oom_kill fix is to do mmput(mm) a bit earlier and returning 0 or 1 to indicate success or failure instead of returning mm_struct pointer. Coywolf Signed-off-by: Coywolf Qi Hunt <[EMAIL PROTECTED]> oom_kill.c | 23 +-- 1 files changed, 9 inse

hold task lock question

2005-03-14 Thread Coywolf Qi Hunt
Hello, Should we hold some lock (like task_lock(tsk)) when test tsk->mm == &init_mm or any things else like tsk->mm ==0 ? Suppose it's the final test. Thanks -- Coywolf Qi Hunt http://sosdg.org/~coywolf/ - To unsubscribe from this list: send the line "unsubscribe

Re: out-of-line x86 "put_user()" implementation

2005-03-12 Thread Coywolf Qi Hunt
> +#define put_user(x,ptr)\ > +({ int __ret_pu; \ > + __chk_user_ptr(ptr);\ > + switch(sizeof(*(ptr))) {\ > +

Re: [patch 1/1] /proc/$$/ipaddr and per-task networking bits

2005-03-11 Thread Coywolf Qi Hunt
er running @current task/process,if available. > > but... a use doesn't hane an IP. a host does. > The patch is useful in this situation. Suppose node E has two IPs, IP1 and IP2. IP1 is the default and got blocked from some network C. Now if one try to visit C from E, one has to to

Re: oom with 2.6.11

2005-03-11 Thread Coywolf Qi Hunt
gt; > thank you for your comments, > Christian. > -- > BOFH excuse #281: > > The co-locator cannot verify the frame-relay gateway to the ISDN server. > - > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to [E

Re: Question regarding thread_struct

2005-03-08 Thread Coywolf Qi Hunt
QSTACKS seems only on ppc64. Is it good to add for other archs too? Regards -- Coywolf Qi Hunt Homepage http://sosdg.org/~coywolf/ - 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 FAQ at http://www.tux.org/lkml/

[patch] remove barrier() in software_resume()

2005-03-08 Thread Coywolf Qi Hunt
Hello, This patch removes the redundant compiler barrier. As Linus ever said "The mb() should make sure that gcc cannot move things around...". --coywolf Signed-off-by: Coywolf Qi Hunt <[EMAIL PROTECTED]> diff -Nrup 2.6.11/kernel/power/disk.c 2.6.11-cy/kernel/power/disk.c -

[patch] mnt_init() cleanup

2005-03-08 Thread Coywolf Qi Hunt
Hello akpm, At the very beginning in 2.4 days, in mnt_init(), mount_hashtable allocation page order was determined at runtime. Later the page order got fixed to 0. This patch cleanups it. Signed-off-by: Coywolf Qi Hunt <[EMAIL PROTECTED]> diff -Nrup 2.6.11/fs/namespace.c 2.6.11

Re: [patch] remove the `.' in EXTRAVERSION usage

2005-03-05 Thread Coywolf Qi Hunt
On Sat, 5 Mar 2005 13:47:08 +0200, Alexey Dobriyan <[EMAIL PROTECTED]> wrote: > On Saturday 05 March 2005 12:22, Coywolf Qi Hunt wrote: > > > Since 2.6.9, there came along the LOCALVERSION for people to add local > > version in make menuconfig which was EXTRAVERSION orig

[patch] remove the `.' in EXTRAVERSION usage

2005-03-05 Thread Coywolf Qi Hunt
Since 2.6.9, there came along the LOCALVERSION for people to add local version in make menuconfig which was EXTRAVERSION originally for imho. Now EXTRAVERSION goes just as a kernel version number, it's reasonable to remove the `.' in its usage. Signed-off-by: Coywolf Qi Hunt <[EM

Re: proc/locaavg definition

2005-03-03 Thread Coywolf Qi Hunt
ion of this anywhere > > number of currently ready-to-run threads > / > total number of threads in the machine > the pid of the most-recently-created thread. > > No idea why the last one is there. This refects the forking activity. How `heavy