Two questions regarding Opening files within Kernel!

2007-04-07 Thread JanuGerman
Hi Every one, I have got two questions regarding opening files within the Linux kernel. If some body can help me, in sorting out this problem, i will be very thankful. 1) I have just a file path with me, an absolute path, but no dentry, no inode, no vfsmount object, which function i can cal

Re: Reiser4. BEST FILESYSTEM EVER.

2007-04-07 Thread Willy Tarreau
On Fri, Apr 06, 2007 at 10:58:45PM -0700, [EMAIL PROTECTED] wrote: > You know,... you cut out this bit: > > - > > > The following benchmarks are from > > > > http://linuxhelp.150m.com/resources/fs-benchmarks.htm or, > > http://m.dom

Re: [PATCH 4/5] Char: cyclades, remove volatiles

2007-04-07 Thread Jiri Slaby
Andrew Morton napsal(a): > On Wed, 4 Apr 2007 23:45:38 +0200 (CEST) Jiri Slaby <[EMAIL PROTECTED]> > wrote: > >> cyclades, remove volatiles > > The other changes seem uncontroversial, but this one has the potential > to change runtime behaviour. And cyclades.c is a driver which some people > a

[BUG] scheduler: first timeslice of the exiting thread

2007-04-07 Thread Satoru Takeuchi
Hi Ingo and all, When I was examining the following program ... 1. There are a large amount of small jobs takes several msecs, and the number of job increases constantly. 2. The process creates a thread or a process per job (I examined both the thread model and the process model).

Re: COMPILING AND CONFIGURING A NEW KERNEL.

2007-04-07 Thread johnrobertbanks
Just correcting some errors and typos. Wouldn't want you to say that the linux kernel mailing list gave you incorrect info. COMPILING AND CONFIGURING A NEW KERNEL. Download a recent kernel from http://www.kernel.org/ I will use the kernel linux-2.6.20.tar.bz2 You will have to change details o

Re: [BUG] scheduler: first timeslice of the exiting thread

2007-04-07 Thread Satoru Takeuchi
At Sat, 07 Apr 2007 16:31:39 +0900, Satoru Takeuchi wrote: > Test programs(attached in the mail): > > - satprocess.c: Process model. It creates a child process and wait for it >several times. Each child process exits immediately. > - satthread.c: Thread model. It creates

Re: coding style for long conditions

2007-04-07 Thread Junio C Hamano
David Brownell <[EMAIL PROTECTED]> writes: > So in practical terms "\n \t" and "\n\t" are identical; > although the former "should not" be used, it doesn't > actually affect what CodingStyle is primarily trying to > control (i.e. what the code looks like). That's not what CodingStyle is trying to

[patch] high-res timers: UP resume fix

2007-04-07 Thread Ingo Molnar
* Linus Torvalds <[EMAIL PROTECTED]> wrote: > In fact, I have a theory.. Your backtrace is: > > [] smp_apic_timer_interrupt+0x57/0x90 > [] retrigger_next_event+0x0/0xb0 > [] apic_timer_interrupt+0x28/0x30 > [] retrigger_next_event+0x0/0xb0 > [] __kfifo_put+0x8/0x90 > [] on_each_cpu+0x35/0

[PATCH 01/14] sysfs: fix i_ino handling in sysfs

2007-04-07 Thread Tejun Heo
Inode number handling was incorrect in two ways. 1. sysfs uses the inode number allocated by new_inode() and never hashes it. When reporting the inode number, it uses iunique() if inode is inaccessible. This is incorrect because iunique() assumes the inodes are hashed. This can cause d

[PATCH 02/14] sysfs: fix error handling in binattr write()

2007-04-07 Thread Tejun Heo
Error handling in fs/sysfs/bin.c:write() was wrong because size_t count is used to receive return value from flush_write() which is negative on failure. This patch updates write() such that int variable is used instead. read() is updated the same way for consistency. Signed-off-by: Tejun Heo <[EM

[PATCH 14/14] sysfs: kill unnecessary attribute->owner

2007-04-07 Thread Tejun Heo
sysfs is now completely out of driver/module lifetime game. After deletion, a sysfs node doesn't access anything outside sysfs proper, so there's no reason to hold onto the attribute owners. Note that often the wrong modules were accounted for as owners leading to accessing removed modules. This

[PATCH 08/14] sysfs: make sysfs_dirent->s_element a union

2007-04-07 Thread Tejun Heo
Make sd->s_element a union of sysfs_elem_{dir|symlink|attr|bin_attr} and rename it to s_elem. This is to achieve... * some level of type checking : changing symlink to point to sysfs_dirent instead of kobject is much safer and less painful now. * easier / standardized dereferencing * allow sysf

[PATCH 05/14] sysfs: consolidate sysfs_dirent creation functions

2007-04-07 Thread Tejun Heo
Currently there are four functions to create sysfs_dirent - __sysfs_new_dirent(), sysfs_new_dirent(), __sysfs_make_dirent() and sysfs_make_dirent(). Other than sysfs_make_dirent(), no function has two users if calls to implement other functions are excluded. This patch consolidates sysfs_dirent c

[PATCH 11/14] sysfs: implement bin_buffer

2007-04-07 Thread Tejun Heo
Implement bin_buffer which contains a mutex and pointer to PAGE_SIZE buffer to properly synchronize accesses to per-openfile buffer and prepare for immediate-kobj-disconnect. Signed-off-by: Tejun Heo <[EMAIL PROTECTED]> --- fs/sysfs/bin.c | 64 ++-

[PATCH 06/14] sysfs: add sysfs_dirent->s_parent

2007-04-07 Thread Tejun Heo
Add sysfs_dirent->s_parent. With this patch, each sd points to and holds a reference to its parent. This allows walking sysfs tree without referencing sd->s_dentry which can go away anytime if the user doesn't control when it's deleted. sd->s_parent is initialized and parent is referenced in sys

Re: [patch] high-res timers: UP resume fix

2007-04-07 Thread Ingo Molnar
* Ingo Molnar <[EMAIL PROTECTED]> wrote: > [...] Soeren, can you confirm that you are using a !CONFIG_SMP kernel, > and if yes, does the patch below fix the resume problem for you? hm, you seem to have a CONFIG_SMP=y kernel. I dont immediately see where we re-enable interrupts in the SMP case,

[PATCH 12/14] sysfs: implement immediate kobject disconnect

2007-04-07 Thread Tejun Heo
Opening a sysfs node references its associated kobject, so userland can arbitrarily prolong lifetime of a kobject which complicates lifetime rules in drivers. This patch makes the association between kobject and sysfs immediately breakable. Each sysfs_dirent representing a kobject has a rwsem. A

[PATCH 09/14] sysfs: implement kobj_sysfs_assoc_lock

2007-04-07 Thread Tejun Heo
kobj->dentry can go away anytime unless the user controls when the associated sysfs node is deleted. This patch implements kobj_sysfs_assoc_lock which protects kobj->dentry. This will be used to maintain kobj based API when converting sysfs to use sysfs_dirent tree instead of dentry/kobject. Not

[PATCH 07/14] sysfs: add sysfs_dirent->s_name

2007-04-07 Thread Tejun Heo
Add s_name to sysfs_dirent. This is to further reduce dependency to the associated dentry. Name is copied for directories and symlinks but not for attributes. Where possible, name dereferences are converted to use sd->s_name. sysfs_symlink->link_name and sysfs_get_name() are unused now and remov

[PATCH 04/14] sysfs: flatten cleanup paths in sysfs_add_link() and create_dir()

2007-04-07 Thread Tejun Heo
Flatten cleanup paths in sysfs_add_link() and create_dir() to improve readability and ease further changes to these functions. This is in preparation of object reference simplification. Signed-off-by: Tejun Heo <[EMAIL PROTECTED]> --- fs/sysfs/dir.c | 73 ++-

[PATCH 03/14] sysfs: move sysfs_get_kobject() and release_sysfs_dirent() to dir.c

2007-04-07 Thread Tejun Heo
There is no reason these functions should be inlined and soon to follow sysfs object reference simplification will make these functions heavier. Move them to dir.c. Signed-off-by: Tejun Heo <[EMAIL PROTECTED]> --- fs/sysfs/dir.c | 30 ++ fs/sysfs/sysfs.h | 32 ++

[PATCHSET #master] sysfs: make sysfs disconnect immediately from kobject on deletion

2007-04-07 Thread Tejun Heo
Hello, all. This patchset is result of the following thread. http://thread.gmane.org/gmane.linux.kernel/510293 This patchset takes sysfs out of device driver lifetime equation which not not only fixes several race conditions caused by sysfs not holding onto the proper module when referencing k

[PATCH 13/14] sysfs: kill attribute file orphaning

2007-04-07 Thread Tejun Heo
Now that sysfs_dirent can be disconnected from kobject on deletion, there is no need to orphan each attribute files. All [bin_]attribute nodes are automatically orphaned when the parent node is deleted. Kill attribute file orphaning. Signed-off-by: Tejun Heo <[EMAIL PROTECTED]> --- fs/sysfs/file

[PATCH 10/14] sysfs: reimplement symlink using sysfs_dirent tree

2007-04-07 Thread Tejun Heo
sysfs symlink is implemented by referencing dentry and kobject from sysfs_dirent - symlink entry references kobject, dentry is used to walk the tree. This complicates object lifetimes rules and is dangerous - for example, there is no way to tell to which module the target of a symlink belongs and

Re: [PATCH] fix sysfs_readdir oops (was Re: sysfs reclaim crash)

2007-04-07 Thread Tejun Heo
Hello, Maneesh. Maneesh Soni wrote: > o sysfs_d_iput() is invoked in dentry reclaim path under memory pressure. This > happens without i_mutex. It also nullifies s_dentry to indicate that > the associated dentry is evicted. sysfs_readdir() accesses the s_dentry, > and gets the inode number f

Re: [PATCH] PPC4xx UART0 (8250) problem

2007-04-07 Thread Mikhail Zolotaryov
Benjamin Herrenschmidt wrote: > This is an old problem. The proper fix is already implemented for > arch/powerpc and consist of having virtual irq numbers (which helps for > many other things anyway). > > Support for 4xx platforms in arch/powerpc is starting to get in, pop on > [EMAIL PROTECTED]

[PATCH, take4] FUTEX : new PRIVATE futexes

2007-04-07 Thread Eric Dumazet
Hi all Updates on this take4 : - All remarks from Nick were addressed I hope - Current mm code have a problem with 64bit futexes, as spoted by Nick : get_futex_key() does a check against sizeof(u32) regardless of futex being 64bits or not. So it is possible a 64bit futex spans two pages of mem

Re: [patch] high-res timers: UP resume fix

2007-04-07 Thread Thomas Gleixner
On Sat, 2007-04-07 at 10:25 +0200, Ingo Molnar wrote: > * Ingo Molnar <[EMAIL PROTECTED]> wrote: > > > [...] Soeren, can you confirm that you are using a !CONFIG_SMP kernel, > > and if yes, does the patch below fix the resume problem for you? > > hm, you seem to have a CONFIG_SMP=y kernel. I don

Re: Linux 2.6.21-rc6

2007-04-07 Thread Michal Piotrowski
Hi all, This looks like a lockdep problem. 2.6.21-rc6 + hrtimers_debug.patch (from Ingo) - skge_wol_support (commit a504e64ab42bcc27074ea37405d06833ed6e0820) dropped due to swsusp problems [14016.726946] BUG: at /mnt/md0/devel/linux-git/kernel/lockdep.c:2427 check_flags() [14016.734331] [] sho

Re: [patch] high-res timers: UP resume fix

2007-04-07 Thread Ingo Molnar
* Thomas Gleixner <[EMAIL PROTECTED]> wrote: > On Sat, 2007-04-07 at 10:25 +0200, Ingo Molnar wrote: > > * Ingo Molnar <[EMAIL PROTECTED]> wrote: > > > > > [...] Soeren, can you confirm that you are using a !CONFIG_SMP kernel, > > > and if yes, does the patch below fix the resume problem for yo

Re: [patch] high-res timers: UP resume fix

2007-04-07 Thread Thomas Gleixner
On Sat, 2007-04-07 at 10:12 +0200, Ingo Molnar wrote: > Subject: [patch] high-res timers: UP resume fix > From: Ingo Molnar <[EMAIL PROTECTED]> > > Soeren Sonnenburg reported that upon resume he is getting > this backtrace: > > [] smp_apic_timer_interrupt+0x57/0x90 > [] retrigger_next_event+0x0

Re: [patch 2/4] clean up identify_cpu

2007-04-07 Thread Andrew Morton
On Fri, 06 Apr 2007 15:41:54 -0700 Jeremy Fitzhardinge <[EMAIL PROTECTED]> wrote: > identify_cpu() is used to identify both the boot CPU and secondary > CPUs, but it performs some actions which only apply to the boot CPU. > Those functions are therefore really __init functions, but because > they

Re: [PATCH] [sched] redundant reschedule when set_user_nice() boosts a prio of a task from the "expired" array

2007-04-07 Thread Dmitry Adamushko
On 07/04/07, Andrew Morton <[EMAIL PROTECTED]> wrote: On Wed, 4 Apr 2007 22:05:40 +0200 "Dmitry Adamushko" > [...] > > o Make TASK_PREEMPTS_CURR(task, rq) return "true" only if the task's > prio is higher than the current's one and the task is in the "active" > array. > This ensures we don't mak

Re: [PATCH] [sched] redundant reschedule when set_user_nice() boosts a prio of a task from the "expired" array

2007-04-07 Thread Ingo Molnar
* Dmitry Adamushko <[EMAIL PROTECTED]> wrote: > following the conversation on "a redundant reschedule call in > set_user_prio()", here is a possible approach. > > The patch is somewhat intrusive as it even dares to adapt > TASK_PREEMPTS_CURR(). looks good to me, but the patch seems seriously

Re: Two questions regarding Opening files within Kernel!

2007-04-07 Thread Roland Kuhn
Hi! On 7 Apr 2007, at 08:58, JanuGerman wrote: 1) I have just a file path with me, an absolute path, but no dentry, no inode, no vfsmount object, which function i can call to get a "file" object associated with the absoulte file path. I have surfed arround the source code especially fs/o

Re: [PATCH] [sched] redundant reschedule when set_user_nice() boosts a prio of a task from the "expired" array

2007-04-07 Thread Ingo Molnar
* Andrew Morton <[EMAIL PROTECTED]> wrote: > so > > - your code only gets publically tested in its against-staircase > version > > - the against-mainline version will get merged without having been > publically tested outside of staircase > > which is probably all OK for a 2.6.22-rc1 thin

Re: [PATCH] console UTF-8 fixes

2007-04-07 Thread Egmont Koblinger
On Fri, Apr 06, 2007 at 12:43:03PM -0700, H. Peter Anvin wrote: Hi, > I strongly disagree. First of all, you're changing the semantics of a > 13-year-old API. The semantics of the Linux console is that by > specifying U+FFFD SUBSTITUTION GLYPH in your unicode table, you have > specified the

Re: [PATCH 1/8] Enhance process freezer interface for usage beyond software suspend

2007-04-07 Thread Rafael J. Wysocki
On Saturday, 7 April 2007 00:20, Nigel Cunningham wrote: > Hi. > > On Fri, 2007-04-06 at 16:34 +0200, Rafael J. Wysocki wrote: > > On Monday, 2 April 2007 22:51, Pavel Machek wrote: > > > Hi! > > > > > > > > > +/* Per process freezer specific flags */ > > > > > > +#define PF_FE_SUSPEND 0x000

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

2007-04-07 Thread Nick Piggin
Eric Dumazet wrote: Hi all Updates on this take4 : - All remarks from Nick were addressed I hope Yeah looks very nice. Thanks for doing that. - Current mm code have a problem with 64bit futexes, as spoted by Nick : get_futex_key() does a check against sizeof(u32) regardless of futex being

possible NULL pointer usage

2007-04-07 Thread Cyrill Gorcunov
Hi, from the function fs/udf/inode.c:udf_fill_inode - ... UDF_I_DATA(inode) = kmalloc(inode->i_sb->s_blocksize - sizeof(struct extendedFileEntry), GFP_KERNEL); memcpy(UDF_I_DATA(inode), bh->b_data + sizeof(struct extendedFileEntry), inode->i_sb->s_blocksize - sizeof(str

Re: [patch] high-res timers: UP resume fix

2007-04-07 Thread Rafael J. Wysocki
On Saturday, 7 April 2007 10:48, Thomas Gleixner wrote: > On Sat, 2007-04-07 at 10:25 +0200, Ingo Molnar wrote: > > * Ingo Molnar <[EMAIL PROTECTED]> wrote: > > > > > [...] Soeren, can you confirm that you are using a !CONFIG_SMP kernel, > > > and if yes, does the patch below fix the resume probl

Re: [patch] high-res timers: UP resume fix

2007-04-07 Thread Ingo Molnar
* Rafael J. Wysocki <[EMAIL PROTECTED]> wrote: > > We do in on_each_cpu() unconditionally. I missed that. > > BTW, the on_each_cpu() in clock_was_set() is unnecessary, because > timekeeping_resume() is always run on one CPU. yes - but that's not the only place where we do clock_was_set(), and

Re: [PATCH 1/8] Enhance process freezer interface for usage beyond software suspend

2007-04-07 Thread Nigel Cunningham
Hi. On Sat, 2007-04-07 at 11:33 +0200, Rafael J. Wysocki wrote: > On Saturday, 7 April 2007 00:20, Nigel Cunningham wrote: > > > > > > > - current->flags |= PF_NOFREEZE; > > > > > > > + freezer_exempt(FE_ALL); > > > > > > > pid = kernel_thread(do_linuxrc, "/linuxrc", SIGCHLD); > > > > > > > if

[patch] high-res timers: resume fix

2007-04-07 Thread Ingo Molnar
find updated patch below - only the patch description changed: i removed the 'UP' thing (patch has relevance on SMP too), and added Thomas' ack. Ingo > Subject: [patch] high-res timers: resume fix From: Ingo Molnar <[EMAIL PROTECTED]> Soeren Sonnenburg repor

Re: [patch] high-res timers: UP resume fix

2007-04-07 Thread Rafael J. Wysocki
On Saturday, 7 April 2007 11:47, Ingo Molnar wrote: > > * Rafael J. Wysocki <[EMAIL PROTECTED]> wrote: > > > > We do in on_each_cpu() unconditionally. I missed that. > > > > BTW, the on_each_cpu() in clock_was_set() is unnecessary, because > > timekeeping_resume() is always run on one CPU. > >

Re: [patch] high-res timers: UP resume fix

2007-04-07 Thread Thomas Gleixner
On Sat, 2007-04-07 at 11:47 +0200, Ingo Molnar wrote: > * Rafael J. Wysocki <[EMAIL PROTECTED]> wrote: > > > > We do in on_each_cpu() unconditionally. I missed that. > > > > BTW, the on_each_cpu() in clock_was_set() is unnecessary, because > > timekeeping_resume() is always run on one CPU. > >

Re: [patch] high-res timers: resume fix

2007-04-07 Thread Rafael J. Wysocki
On Saturday, 7 April 2007 11:49, Ingo Molnar wrote: > > find updated patch below - only the patch description changed: i removed > the 'UP' thing (patch has relevance on SMP too), and added Thomas' ack. > > Ingo > > > > Subject: [patch] high-res timers: resume

[PATCH] dtlk: fix error checks in module_init()

2007-04-07 Thread Akinobu Mita
This patch fixes two things in module_init. - fix register_chrdev() error check Currently dtlk doesn't check register_chrdev() failure correctly. register_chrdev() returns a errno on failure. - check probe failure dtlk ignores probe failure and allows the module loading without such dev

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

2007-04-07 Thread Eric Dumazet
On Sat, 07 Apr 2007 19:30:14 +1000 Nick Piggin <[EMAIL PROTECTED]> wrote: > Eric Dumazet wrote: > > > > - Current mm code have a problem with 64bit futexes, as spoted by Nick : > > > > get_futex_key() does a check against sizeof(u32) regardless of futex being > > 64bits or not. > > So it is p

[patch, take #3] high-res timers: resume fix

2007-04-07 Thread Ingo Molnar
* Rafael J. Wysocki <[EMAIL PROTECTED]> wrote: > Hm, I'm probably missing something obvious, but where is it going to > be called from? doh! :) Find new patch below :-/ Soeren, please test this one. Ingo > Subject: [patch] high-res timers: resume fix From:

Re: kernel OOPSes when changing DVB-T adapter in 2.6.21-rc3

2007-04-07 Thread CIJOML
Hi, I can confirm this fixes problem. Please include into 2.6.21 Michal Dne pátek 06 duben 2007 21:58 Markus Rechberger napsal(a): > I committed a patch which fixes this issue: > > http://mcentral.de/hg/~mrec/v4l-dvb-stable/ > > That problem got caused by releasing data structures which are stil

Re: [PATCH] timekeeping: drop irq-context clocksource polling

2007-04-07 Thread Andrew Morton
On Thu, 05 Apr 2007 14:03:16 -0700 Daniel Walker <[EMAIL PROTECTED]> wrote: > Before this change the timekeeping code would poll the clocksource > list every interrupt. This changes that so the clocksource list is > only checked when there has been and update, and no longer checks > in interrupt c

Re: [patch, take #3] high-res timers: resume fix

2007-04-07 Thread Soeren Sonnenburg
On Sat, 2007-04-07 at 12:05 +0200, Ingo Molnar wrote: > * Rafael J. Wysocki <[EMAIL PROTECTED]> wrote: > > > Hm, I'm probably missing something obvious, but where is it going to > > be called from? > > doh! :) Find new patch below :-/ Soeren, please test this one. OK, I did about 5 suspend/resu

Re: [PATCH] console UTF-8 fixes

2007-04-07 Thread Jan Engelhardt
Hi, I just wanted to give my opinion on things... (and enable utf8 to read this properly) On Apr 7 2007 11:24, Egmont Koblinger wrote: > >> I strongly disagree. First of all, you're changing the semantics of a >> 13-year-old API. The semantics of the Linux console is that by >> specifying U

Re: Two questions regarding Opening files within Kernel!

2007-04-07 Thread Jan Engelhardt
On Apr 7 2007 06:58, JanuGerman wrote: >Hi Every one, > > I have got two questions regarding opening files within the Linux > kernel. If some body can help me, in sorting out this problem, i will > be very thankful. > >1) I have just a file path with me, an absolute path, but no dentry, >

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

2007-04-07 Thread Jakub Jelinek
On Sat, Apr 07, 2007 at 10:43:39AM +0200, Eric Dumazet wrote: > get_futex_key() does a check against sizeof(u32) regardless of futex being > 64bits or not. > So it is possible a 64bit futex spans two pages of memory... That would be a user bug. 32-bit futexes have to be 32-bit aligned, 64-bit fu

Re: broken device locking, sg vs. sg_io on block devices

2007-04-07 Thread Eduard Bloch
#include First, we (me and Thomas Schmidt) are working on a draft for a mandatory locking scheme which will take care of the most racy situations even without having a proper in-kernel solution. But you need to exlain some things, otherwise we cannot rely on your words. > (open has side effects

compressing intermediate files with LZO on the fly

2007-04-07 Thread Al Boldi
Willy Tarreau wrote: > > ... for some usages (temporary space), > light compression can increase speed. For instance, when processing logs, > I get better speed by compressing intermediate files with LZO on the fly. How can you do that on ext3? Also, can you do that on a partition block-io level?

[PATCH nf-2.6.22] [netfilter] early_drop imrovement

2007-04-07 Thread Vasily Averin
When the number of conntracks is reached nf_conntrack_max limit, early_drop() is called and tries to free one of already used conntracks in one of the hash buckets. If it does not find any conntracks that may be freed, it leads to transmission errors. However it is not fair because of current hash

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

2007-04-07 Thread Eric Dumazet
Jakub Jelinek a écrit : On Sat, Apr 07, 2007 at 10:43:39AM +0200, Eric Dumazet wrote: get_futex_key() does a check against sizeof(u32) regardless of futex being 64bits or not. So it is possible a 64bit futex spans two pages of memory... That would be a user bug. 32-bit futexes have to be 32-

Re: compressing intermediate files with LZO on the fly

2007-04-07 Thread Willy Tarreau
Hi Al, On Sat, Apr 07, 2007 at 02:32:34PM +0300, Al Boldi wrote: > Willy Tarreau wrote: > > > > ... for some usages (temporary space), > > light compression can increase speed. For instance, when processing logs, > > I get better speed by compressing intermediate files with LZO on the fly. > > Ho

Re: [PATCH nf-2.6.22] [netfilter] early_drop imrovement

2007-04-07 Thread Eric Dumazet
Vasily Averin a e'crit : When the number of conntracks is reached nf_conntrack_max limit, early_drop() is called and tries to free one of already used conntracks in one of the hash buckets. If it does not find any conntracks that may be freed, it leads to transmission errors. However it is not fa

[dm-devel] bio too big device md1 (16 > 8)

2007-04-07 Thread syrius . ml
Hi, i'm using 2.6.21-rc5-git9 + http://www.kernel.org/pub/linux/kernel/people/agk/patches/2.6/editing/dm-merge-max_hw_sector.patch ( i've been testing with and without it, and first encountered it on 2.6.18-debian ) I've setup a raid1 array md1 (it was created in a degraded mode using the debi

Re: mm snapshot broken-out-2007-04-07-03-27.tar.gz uploaded

2007-04-07 Thread Michal Piotrowski
[EMAIL PROTECTED] napisał(a): > The mm snapshot broken-out-2007-04-07-03-27.tar.gz has been uploaded to > > > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/mm/broken-out-2007-04-07-03-27.tar.gz > > It contains the following patches against 2.6.21-rc6: > LTP triggered a ptrace problem.

Re: REISER4: fix for reiser4_write_extent

2007-04-07 Thread Laurent Riffard
Le 06.04.2007 00:42, Ignatich a écrit : While trying to find the cause of problems with reiser4 in recent kernels I came across this. Incomplete write handling seem to be missing from reiser4_write_extent() thanks to reiser4-temp-fix.patch. Strangely, there is a patch by Edward Shishkin that

Re: Reiser4. BEST FILESYSTEM EVER.

2007-04-07 Thread johnrobertbanks
Hi Willy,... > With decent CPU, you can reach higher read/write data rates than what a > single off-the-shelf disk can achieve. For this reason, I think that > reiser4 would be worth trying for this particular usage. Glad to see you are willing to give Reiser4 a go. Good man. --

Re: Reiser4. BEST FILESYSTEM EVER.

2007-04-07 Thread Dale Amon
Jan does have a point about bad blocks. A couple years ago I had a relatively new disk start to go bad on random blocks. I detected it fairly quickly but did have some data loss. All the compressed archives which were hit were near total losses; most other files were at least partially recoverable

Re: Reiser4. BEST FILESYSTEM EVER.

2007-04-07 Thread Krzysztof Halasa
[EMAIL PROTECTED] writes: > Why do you think I hate reiserfs developers? That is an insane claim. > Why would I hate reiser3 developers? > Why would I hate reiser4 developers? > Why would I even dislike them? > > I think Hans Reiser is a genius. Is that what you mean by hate? I think they could

Re: Reiser4. BEST FILESYSTEM EVER.

2007-04-07 Thread johnrobertbanks
Krzysztof -- Aren't you missing the point? Twice the speed would be great,... even a 50% increase,... even a 0% increase. I checked what bonnie++ actually writes to its test files, for you. It is about 98-99% zeros. Still, the results record sequential reads, of 232,729 K/sec, nearly four times

[PATCH] kernel-doc: handle arrays with arithmetic expressions as initializers

2007-04-07 Thread Borislav Petkov
On Fri, Apr 06, 2007 at 05:53:25PM -0700, Randy Dunlap wrote: > From: Jan Engelhardt <[EMAIL PROTECTED]> > > Unfortunately, kernel-doc has problems with a struct field like this: > uint8_t databuf[NAND_MAX_PAGESIZE + NAND_MAX_OOBSIZE]; > > simply due to the spaces around the "+" sign, so dr

[patch] nfs statfs error-handling fix

2007-04-07 Thread amnonaar
Hi, The nfs statfs function returns a success code on error, and fills the output buffer with invalid values. The attached patch makes it return a correct error code instead. Thanks, Amnon Signed-off-by: Amnon Aaronsohn <[EMAIL PROTECTED]> -- --- linux-source-2.6.20-2.6.20/fs/nfs/super.c.or

Re: Reiser4. BEST FILESYSTEM EVER.

2007-04-07 Thread johnrobertbanks
On Sat, 7 Apr 2007 13:59:14 +0100, "Dale Amon" <[EMAIL PROTECTED]> said: > Jan does have a point about bad blocks. A couple years ago > I had a relatively new disk start to go bad on random blocks. > I detected it fairly quickly but did have some data loss. > > All the compressed archives which we

O_APPEND, lseek() and pwrite()

2007-04-07 Thread Timo Sirainen
If I open a file with O_APPEND and write() to it, it looks like the file offset is updated and I can get it with lseek(SEEK_CUR). Can I trust that this behavior won't change in future Linux versions? Apparently this isn't standard, because at least OS X and Solaris don't do this. pwrite()

Re: [RFD driver-core] Lifetime problems of the current driver model

2007-04-07 Thread Alan Stern
On March 30, 2007, Tejun Heo wrote: > Hello, all. > > This document tries to describe lifetime problems of the current > device driver model primarily from the point view of device drivers > and establish consensus, or at least, start discussion about how to > solve these problems. This is prima

Re: Reiser4. BEST FILESYSTEM EVER.

2007-04-07 Thread Pekka Enberg
On 4/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I checked what bonnie++ actually writes to its test files, for you. It is about 98-99% zeros. Still, the results record sequential reads, of 232,729 K/sec, nearly four times the physical disk read rate, 63,160 K/sec, of the hard drive. Ex

[PATCH -mm] freezer: Remove PF_NOFREEZE from handle_initrd

2007-04-07 Thread Rafael J. Wysocki
From: Rafael J. Wysocki <[EMAIL PROTECTED]> Make handle_initrd() call try_to_freeze() in a suitable place instead of setting PF_NOFREEZE for the current task. Signed-off-by: Rafael J. Wysocki <[EMAIL PROTECTED]> --- init/do_mounts_initrd.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletio

Re: Ten percent test

2007-04-07 Thread Gene Heskett
On Saturday 07 April 2007, Con Kolivas wrote: >On Friday 06 April 2007 20:03, Ingo Molnar wrote: >> * Con Kolivas <[EMAIL PROTECTED]> wrote: >[...] >> >> firstly, testing on various workloads Mike's tweaks work pretty well, >> while SD still doesnt handle the high-load case all that well. Note >>

Re: [patch] remove artificial software max_loop limit

2007-04-07 Thread Valdis . Kletnieks
On Fri, 06 Apr 2007 16:33:32 EDT, Bill Davidsen said: > Jan Engelhardt wrote: > > Who cares if the user specifies max_loop=8 but still is able to open up > > /dev/loop8, loop9, etc.? max_loop=X basically meant (at least to me) > > "have at least X" loops ready. > > > You have just come up with

SD scheduler testing hitch

2007-04-07 Thread Mike Galbraith
On Sat, 2007-04-07 at 11:24 +0200, Ingo Molnar wrote: > * Andrew Morton <[EMAIL PROTECTED]> wrote: > > Where are we at with staircase anyway? Is it looking like a 2.6.22 > > thing? I don't personally think we've yet seen enough serious > > performance testing to permit a merge, apart from other

[PATCH] block layer: Add bdev capacity helper function get_sect_count

2007-04-07 Thread John Anthony Kazos Jr.
From: John Anthony Kazos Jr. <[EMAIL PROTECTED]> Add static inline function get_sect_count to include/linux/genhd.h to complement get_start_sect. Returns sector_t capacity of block device whether it is whole or a partition. Signed-off-by: John Anthony Kazos Jr. <[EMAIL PROTECTED]> --- This wi

Re: Ten percent test

2007-04-07 Thread Mike Galbraith
On Sat, 2007-04-07 at 16:50 +1000, Con Kolivas wrote: > On Friday 06 April 2007 20:03, Ingo Molnar wrote: > > (There was one person who > > reported wide-scale interactivity regressions against mainline but he > > didnt answer my followup posts to trace/debug the scenario.) > > That was one user

Re: [patch] remove artificial software max_loop limit

2007-04-07 Thread Bill Davidsen
[EMAIL PROTECTED] wrote: On Fri, 06 Apr 2007 16:33:32 EDT, Bill Davidsen said: Jan Engelhardt wrote: Who cares if the user specifies max_loop=8 but still is able to open up /dev/loop8, loop9, etc.? max_loop=X basically meant (at least to me) "have at least X" loops ready.

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

2007-04-07 Thread Ulrich Drepper
On 4/7/07, Eric Dumazet <[EMAIL PROTECTED]> wrote: I am not sure what you want to say. What Jakub meant is that it is OK for the kernel to reject using unaligned 64-bit futexes. Just return an error in all cases (not just in some). - To unsubscribe from this list: send the line "unsubscribe li

Re: COMPILING AND CONFIGURING A NEW KERNEL.

2007-04-07 Thread Valdis . Kletnieks
On Fri, 06 Apr 2007 18:26:45 PDT, [EMAIL PROTECTED] said: > > YOU SHOULD compile all the drivers necessary to boot your system, into > the kernel (ie, such drivers should not be built as modules). > > This way you will NOT need an initrd file. It is quite possible to build a kernel that has all t

Re: [PATCH 12/13] maps#2: Add /proc/pid/pagemap interface

2007-04-07 Thread Matt Mackall
On Fri, Apr 06, 2007 at 11:55:10PM -0700, Andrew Morton wrote: > On Fri, 06 Apr 2007 17:03:13 -0500 Matt Mackall <[EMAIL PROTECTED]> wrote: > > > Add /proc/pid/pagemap interface > > > > This interface provides a mapping for each page in an address space to > > its physical page frame number, allo

Re: Two questions regarding Opening files within Kernel!

2007-04-07 Thread Robert Hancock
JanuGerman wrote: Hi Every one, I have got two questions regarding opening files within the Linux kernel. If some body can help me, in sorting out this problem, i will be very thankful. First off, likely not something you should be doing: http://kernelnewbies.org/FAQ/WhyWritingFilesFromKer

Re: COMPILING AND CONFIGURING A NEW KERNEL.

2007-04-07 Thread Valdis . Kletnieks
On Sat, 07 Apr 2007 00:45:32 PDT, [EMAIL PROTECTED] said: > Use rpm-pkg to create a Red Hat RPM kernel package. > # make rpm-pkg > > When built, the RPM package is put in > /usr/src/packages/RPMS/*your*architecture* > > # cd /usr/src/packages/RPMS/x86_64 > > Install the package (you may have to

Re: Two questions regarding Opening files within Kernel!

2007-04-07 Thread JanuGerman
Thanks Jan for the response. >struct dentry *fbar = lookup_one_len("/foo/bar", current->fs->root); But that gives me a dentry, where as file object is still not reachable. Question: I am currently using a function called fs.h/dentry_open which takes a "dentry", "vfsmount" object and fla

If not readdir() then what?

2007-04-07 Thread Ulrich Drepper
In their closed chambers (well, workshops, http://lwn.net/Articles/226351/), the filesystem developers complain about readdir. I fully appreciate the difficulties. But what I fail to see so far is any proposal for an alternative interface. The phase to get new functionality included in the next

Re: Reiser4. BEST FILESYSTEM EVER.

2007-04-07 Thread Valdis . Kletnieks
On Sat, 07 Apr 2007 16:11:46 +0200, Krzysztof Halasa said: > > Think about it,... read speeds that are some FOUR times the physical > > disk read rate,... impossible without the use of compression (or > > something similar). > > It's really impossible with compression only unless you're writing >

Re: SD scheduler testing hitch

2007-04-07 Thread Mike Galbraith
On Sat, 2007-04-07 at 18:20 +0200, Mike Galbraith wrote: > xx.c > > #include > #include > > #define max(a,b) ((a) > (b) ? (a) : (b)) > #define min(a,b) ((a) < (b) ? (a) : (b)) > > int main(void) > { > struct timeval then, now; > struct timespec t = {0, 1000}, r; > > for(;;) { >

Re: [patch 2/4] clean up identify_cpu

2007-04-07 Thread Jeremy Fitzhardinge
Andrew Morton wrote: > x86_64 uses this too. > > WARNING: arch/x86_64/kernel/built-in.o - Section mismatch: reference to > .init.text:mtrr_bp_init from .text.identify_cpu after 'identify_cpu' (at > offset 0x655) > OK, two patches to follow: a x86-64 variant of the bugs.h cleanup, and a replac

Re: Reiser4. BEST FILESYSTEM EVER.

2007-04-07 Thread Valdis . Kletnieks
On Sat, 07 Apr 2007 16:11:46 +0200, Krzysztof Halasa said: > > Gzip - 3 files (zeros only, raw DV data from video camera, x86_64 > kernel rpm file), 10 MB of data (10*1024*1024), > $ l -Ggh zeros dv bin > -rw-r--r-- 1 10M Apr 7 15:30 bin > -rw-r--r-- 1 10M Apr 7 15:31 dv > -rw-r--r-- 1 10M Apr 7

[PATCH 1/2] Clean up asm-x86_64/bugs.h

2007-04-07 Thread Jeremy Fitzhardinge
Most of asm-x86_64/bugs.h is code which should be in a C file, so put it there. Signed-off-by: Jeremy Fitzhardinge <[EMAIL PROTECTED]> Cc: Andi Kleen <[EMAIL PROTECTED]> Cc: Linus Torvalds <[EMAIL PROTECTED]> --- arch/x86_64/kernel/Makefile |3 ++- arch/x86_64/kernel/bugs.c| 2

[PATCH 2/2] x86: clean up identify_cpu

2007-04-07 Thread Jeremy Fitzhardinge
identify_cpu() is used to identify both the boot CPU and secondary CPUs, but it performs some actions which only apply to the boot CPU. Those functions are therefore really __init functions, but because they're called by identify_cpu(), they must be marked __cpuinit. This patch splits identify_cpu

Re: [PATCH] console UTF-8 fixes

2007-04-07 Thread Egmont Koblinger
On Sat, Apr 07, 2007 at 01:00:48PM +0200, Jan Engelhardt wrote: Hi, > Please, no dot, and no inverse color. > Imagine someone had the following bitmap for : No dot, I'm already convinced. To clarify the inverse thingy: This is what the current kernel does: 1) tries to display the desired symb

[PATCH] partitions: Enhance Kconfig help text for EESOX and MSDOS formats

2007-04-07 Thread John Anthony Kazos Jr.
From: John Anthony Kazos Jr. <[EMAIL PROTECTED]> Adds help text for ACORN_PARTITION_EESOX and improves help text for MSDOS_PARTITION in fs/partitions/Kconfig. Signed-off-by: John Anthony Kazos Jr. <[EMAIL PROTECTED]> --- Applied against Linux v2.6.20.6. --- linux-2.6.20.6-orig/fs/partitions/K

Re: [PATCH 3/7] Containers (V8): Add generic multi-subsystem API to containers

2007-04-07 Thread Paul Menage
On 4/6/07, Srivatsa Vaddagiri <[EMAIL PROTECTED]> wrote: On Fri, Apr 06, 2007 at 04:32:24PM -0700, [EMAIL PROTECTED] wrote: > +static int attach_task(struct container *cont, struct task_struct *tsk) > { [snip] > + task_lock(tsk); You need to check here if task state is PF_EXITING and fail

Re: Reiser4. BEST FILESYSTEM EVER.

2007-04-07 Thread Valdis . Kletnieks
On Fri, 06 Apr 2007 19:47:36 PDT, [EMAIL PROTECTED] said: > On Fri, 6 Apr 2007 11:21:19 -0400, "Jan Harkes" <[EMAIL PROTECTED]> > > With compression there is a pretty high probability that one corrupted > > byte or disk block will result in loss of a considerably larger amount > > of data. > > B

[PATCH] ip_tables.h

2007-04-07 Thread Patrick Ale
Hi lads, I had some problems compiling the external netfilter modules due to missing definitions. I googled a lot, saw a lot of people having the same problems but no real answer to how to fix it. So.. I made a little patch which make things work for me, at least. Modules that work after applyi

  1   2   >