Re: [UNIONFS] 00/29 Unionfs and related patches pre-merge review (v2)

2008-01-26 Thread Al Viro
On Sat, Jan 26, 2008 at 12:08:30AM -0500, Erez Zadok wrote: > > * lock_parent(): who said that you won't get dentry moved > > before managing to grab i_mutex on parent? While we are at it, > > who said that you won't get dentry moved between fetching d_parent > > and doing dget()? In that ca

Re: [RFC] Parallelize IO for e2fsck

2008-01-26 Thread KOSAKI Motohiro
> The commentary on the mem_notify threads claimed that the signal is > easily provided by setting up the file handle for SIGIO. BTW: Of cource, you can receive any signal instead SIGIO by use fcntl(F_SETSIG) :-) - To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the bo

Re: [RFC] Parallelize IO for e2fsck

2008-01-26 Thread KOSAKI Motohiro
> > And from a performance point of view letting applications voluntarily > > free some memory is better even than starting to swap. > > Absolutely. the mem_notify patch can realize "just before starting swapping" notification :) to be honest, I don't know fs guys requirement. if lacking feature

Kernel Event Notifications (was: [RFC] Parallelize IO for e2fsck)

2008-01-26 Thread Al Boldi
KOSAKI Motohiro wrote: > > > And from a performance point of view letting applications voluntarily > > > free some memory is better even than starting to swap. > > > > Absolutely. > > the mem_notify patch can realize "just before starting swapping" > notification :) > > to be honest, I don't know f

Re: [RFC] Parallelize IO for e2fsck

2008-01-26 Thread Theodore Tso
On Fri, Jan 25, 2008 at 05:55:51PM -0800, Bryan Henderson wrote: > I was surprised to see AIX do late allocation by default, because IBM's > traditional style is bulletproof systems. A system where a process can be > killed at unpredictable times because of resource demands of unrelated > proce

Re: Kernel Event Notifications (was: [RFC] Parallelize IO for e2fsck)

2008-01-26 Thread KOSAKI Motohiro
Hi Al > > the mem_notify patch can realize "just before starting swapping" > > notification :) > > > > to be honest, I don't know fs guys requirement. > > if lacking feature of fs guys needed, I implement it with presure if > > you tell me it. > > These notifications are really useful, but it may

Re: [PATCH v2 8/9] bfs: remove multiple assignments

2008-01-26 Thread Tigran Aivazian
On Sat, 26 Jan 2008, Dmitri Vorobiev wrote: - inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME_SEC; + inode->i_mtime = CURRENT_TIME_SEC; + inode->i_atime = CURRENT_TIME_SEC; + inode->i_ctime = CURRENT_TIME_SEC; multiple assignments like "x = y = z = value;

Re: [RFC] ext3 freeze feature

2008-01-26 Thread Christoph Hellwig
On Fri, Jan 25, 2008 at 09:42:30PM +0900, Takashi Sato wrote: > Hi, > > >I am also wondering whether we should have system call(s) for these: > > > >On Jan 25, 2008 12:59 PM, Takashi Sato <[EMAIL PROTECTED]> wrote: > >>+ case EXT3_IOC_FREEZE: { > > > >>+ case EXT3_IOC_THAW: { > > > >An

Re: [PATCH v2 8/9] bfs: remove multiple assignments

2008-01-26 Thread Dmitri Vorobiev
Tigran Aivazian wrote: > On Sat, 26 Jan 2008, Dmitri Vorobiev wrote: >> -inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME_SEC; >> +inode->i_mtime = CURRENT_TIME_SEC; >> +inode->i_atime = CURRENT_TIME_SEC; >> +inode->i_ctime = CURRENT_TIME_SEC; > > multiple assignment

Re: [PATCH v2 8/9] bfs: remove multiple assignments

2008-01-26 Thread Dmitri Vorobiev
Tigran Aivazian wrote: > On Sat, 26 Jan 2008, Dmitri Vorobiev wrote: >> -inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME_SEC; >> +inode->i_mtime = CURRENT_TIME_SEC; >> +inode->i_atime = CURRENT_TIME_SEC; >> +inode->i_ctime = CURRENT_TIME_SEC; > > multiple assignment

[PATCH] [6/18] BKL-removal: Convert ext4 to use unlocked_ioctl

2008-01-26 Thread Andi Kleen
I checked ext4_ioctl and it looked largely safe to not be used without BKL. So convert it over to unlocked_ioctl. The only case where I wasn't quite sure was for the dynamic fs grow ioctls versus umounting -- I kept the BKL for those. Cc: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Signed-off-by:

[PATCH] [4/18] ext3: Remove incorrect BKL comment

2008-01-26 Thread Andi Kleen
There is no BKL held on entry in ->fsync nor in the low level ext3_sync_file. Cc: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Signed-off-by: Andi Kleen <[EMAIL PROTECTED]> --- fs/ext3/dir.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux/fs/ext3/dir.c ===

[PATCH] [7/18] BKL-removal: Remove incorrect comments refering to BKL from ext4

2008-01-26 Thread Andi Kleen
BKL is not hold in any of those Cc: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Signed-off-by: Andi Kleen <[EMAIL PROTECTED]> --- fs/ext4/dir.c |2 +- fs/ext4/inode.c |1 - 2 files changed, 1 insertion(+), 2 deletions(-) Index: linux/fs/ext4/dir.c ===

[PATCH] [8/18] BKL-removal: Remove BKL from remote_llseek

2008-01-26 Thread Andi Kleen
- Replace remote_llseek with remote_llseek_unlocked (to force compilation failures in all users) - Change all users to either use remote_llseek directly or take the BKL around. I changed the file systems who don't use the BKL for anything (CIFS, GFS) to call it directly. NCPFS and SMBFS and NFS t

[PATCH] [14/18] BKL-removal: Add unlocked_fasync

2008-01-26 Thread Andi Kleen
Add a new fops entry point to allow fasync without BKL. While it's arguably unclear this entry point is called often enough for it really matters it was still relatively easy to do. And there are far less async users in the tree than ioctls so it's likely they can be all converted eventually and

[PATCH] [9/18] BKL-removal: Use unlocked_ioctl for jfs

2008-01-26 Thread Andi Kleen
Convert jfs_ioctl over to not use the BKL. The only potential race I could see was with two ioctls in parallel changing the flags and losing the updates. Use the i_mutex to protect against this. Cc: [EMAIL PROTECTED] Signed-off-by: Andi Kleen <[EMAIL PROTECTED]> --- fs/jfs/file.c |2 +

[PATCH] [3/18] BKL-removal: Convert ext3 to use unlocked_ioctl

2008-01-26 Thread Andi Kleen
I checked ext3_ioctl and it looked largely safe to not be used without BKL. So convert it over to unlocked_ioctl. The only case where I wasn't quite sure was for the dynamic fs grow ioctls versus umounting -- I kept the BKL for those. Cc: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Signed-off-by:

[PATCH] [1/18] BKL-removal: Convert ext2 over to use unlocked_ioctl

2008-01-26 Thread Andi Kleen
I checked ext2_ioctl and could not find anything in there that would need the BKL. So convert it over to use unlocked_ioctl Signed-off-by: Andi Kleen <[EMAIL PROTECTED]> --- fs/ext2/dir.c |2 +- fs/ext2/ext2.h |3 +-- fs/ext2/file.c |4 ++-- fs/ext2/ioctl.c | 12 +++-

[PATCH] [2/18] BKL-removal: Remove incorrect BKL comment in ext2

2008-01-26 Thread Andi Kleen
No BKL used anywhere, so don't mention it. Signed-off-by: Andi Kleen <[EMAIL PROTECTED]> --- fs/ext2/inode.c |1 - 1 file changed, 1 deletion(-) Index: linux/fs/ext2/inode.c === --- linux.orig/fs/ext2/inode.c +++ linux/fs/ext2

[PATCH] [0/18] Implement some low hanging BKL removal fruit in fs/*

2008-01-26 Thread Andi Kleen
[Andrew: I believe this is -mm material for .25] - Convert some more file systems (generally those who don't use the BKL for anything except mount) to use unlocked_bkl. - Implement BKL less fasync (see patch for the rationale) This is currently a separate entry point, but since the number of fas

[PATCH] [10/18] BKL-removal: Implement a compat_ioctl handler for JFS

2008-01-26 Thread Andi Kleen
The ioctls were already compatible except for the actual values so this was fairly easy to do. Cc: [EMAIL PROTECTED] Signed-off-by: Andi Kleen <[EMAIL PROTECTED]> --- fs/jfs/file.c |3 +++ fs/jfs/ioctl.c | 18 ++ fs/jfs/jfs_dinode.h |2 ++ fs/jfs/jfs_inode.

[PATCH] [15/18] BKL-removal: Convert pipe over to unlocked_fasync

2008-01-26 Thread Andi Kleen
Signed-off-by: Andi Kleen <[EMAIL PROTECTED]> --- fs/pipe.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) Index: linux/fs/pipe.c === --- linux.orig/fs/pipe.c +++ linux/fs/pipe.c @@ -788,7 +788,7 @@ const stru

[PATCH] [17/18] BKL-removal: Convert fuse to unlocked_fasync

2008-01-26 Thread Andi Kleen
Cc: [EMAIL PROTECTED] Signed-off-by: Andi Kleen <[EMAIL PROTECTED]> --- fs/fuse/dev.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux/fs/fuse/dev.c === --- linux.orig/fs/fuse/dev.c +++ linux/fs/fuse/dev.c @@

[PATCH] [18/18] BKL-removal: Convert bad_inode to unlocked_fasync

2008-01-26 Thread Andi Kleen
Not that it matters much, but it was easy. Signed-off-by: Andi Kleen <[EMAIL PROTECTED]> --- fs/bad_inode.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux/fs/bad_inode.c === --- linux.orig/fs/bad_inode.c +++

[PATCH] [16/18] BKL-removal: Convert socket fasync to unlocked_fasync

2008-01-26 Thread Andi Kleen
Cc: [EMAIL PROTECTED] Signed-off-by: Andi Kleen <[EMAIL PROTECTED]> --- net/socket.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux/net/socket.c === --- linux.orig/net/socket.c +++ linux/net/socket.c @@ -131

[PATCH] [13/18] BKL-removal: Add compat_ioctl for cifs

2008-01-26 Thread Andi Kleen
Similar to the compat handlers of other file systems. The ioctls are compatible except that they have different numbers. Cc: [EMAIL PROTECTED] Signed-off-by: Andi Kleen <[EMAIL PROTECTED]> --- fs/cifs/cifsfs.c | 15 +++ fs/cifs/cifsfs.h |2 ++ fs/cifs/ioctl.c | 19

[PATCH] [12/18] BKL-removal: Convert CIFS over to unlocked_ioctl

2008-01-26 Thread Andi Kleen
cifs_ioctl doesn't seem to need the BKL for anything, so convert it over to use unlocked_ioctl. Cc: [EMAIL PROTECTED] Signed-off-by: Andi Kleen <[EMAIL PROTECTED]> --- fs/cifs/cifsfs.c | 10 +- fs/cifs/cifsfs.h |4 ++-- fs/cifs/ioctl.c |4 ++-- 3 files changed, 9 insertions(

[PATCH] [11/18] BKL-removal: Convert ocfs2 over to unlocked_ioctl

2008-01-26 Thread Andi Kleen
As far as I can see there is nothing in ocfs2_ioctl that requires the BKL, so use unlocked_ioctl Cc: [EMAIL PROTECTED] Signed-off-by: Andi Kleen <[EMAIL PROTECTED]> --- fs/ocfs2/file.c |4 ++-- fs/ocfs2/ioctl.c | 12 +++- fs/ocfs2/ioctl.h |3 +-- 3 files changed, 6 insertion

[PATCH] [5/18] BKL-removal: Remove incorrect comment refering to lock_kernel() from jbd/jbd2

2008-01-26 Thread Andi Kleen
None of the callers of this function does actually take the BKL as far as I can see. So remove the comment refering to the BKL. Cc: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Signed-off-by: Andi Kleen <[EMAIL PROTECTED]> --- fs/jbd/recovery.c |2 +- fs/jbd2/recovery.c |2 +- 2 files chan

[PATCH] BKL-Removal: Convert pipe to use unlocked_ioctl too

2008-01-26 Thread Andi Kleen
Here's another patch that was missing in the previous BKL-removal series. No BKL needed in pipe_ioctl Signed-off-by: Andi Kleen <[EMAIL PROTECTED]> Index: linux/fs/pipe.c === --- linux.orig/fs/pipe.c +++ linux/fs/pipe.c @@ -576,9 +

Re: [patch 00/26] mount options: fix filesystem's ->show_options

2008-01-26 Thread Andrew Morton
> On Thu, 24 Jan 2008 20:33:41 +0100 Miklos Szeredi <[EMAIL PROTECTED]> wrote: > Andrew, > > Would you please consider these patches for -mm? Sure, but I'm too lazy to pick through them and work out which ones need updating, which ones got acked and which ones someone else merged, all on a very b

Re: [PATCH] CRAMFS: Uncompressed files support

2008-01-26 Thread Andrew Morton
> On Tue, 22 Jan 2008 11:23:45 +0900 Kyungmin Park <[EMAIL PROTECTED]> wrote: > Hi, > > This patch enables the uncompressed files support in cramfs. > > The word 'uncompressed file' is from linear cramfs (aka Application XIP). > In linear cramfs, it is used to suport XIP on NOR. However it is als

Re: [PATCH] [14/18] BKL-removal: Add unlocked_fasync

2008-01-26 Thread KOSAKI Motohiro
> Add a new fops entry point to allow fasync without BKL. While it's arguably > unclear this entry point is called often enough for it really matters > it was still relatively easy to do. And there are far less async users > in the tree than ioctls so it's likely they can be all converted > eventua