Re: [RFC] ext3 freeze feature

2008-02-08 Thread Takashi Sato
Hi, Ted wrote: And I do agree that we probably should just implement this in filesystem independent way, in which case all of the filesystems that support this already have super_operations functions write_super_lockfs() and unlockfs(). So if this is done using a new system call, there should

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[PATCH 00/37] Permit filesystem local caching

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

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

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

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

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

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

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

Re: NFS client hang on attempt to do async blocking posix lock enqueue

2008-02-08 Thread david m. richter
On Fri, 8 Feb 2008, J. Bruce Fields wrote: On Fri, Feb 08, 2008 at 07:15:02AM -0500, Jeff Layton wrote: On Thu, 7 Feb 2008 18:26:18 -0500 J. Bruce Fields [EMAIL PROTECTED] wrote: On Sun, Jan 20, 2008 at 09:58:59AM -0500, Oleg Drokin wrote: Hello! On Jan 18, 2008, at 6:07

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Re: [patch 01/26] mount options: add documentation

2008-02-08 Thread Roman Zippel
Hi, On Wed, 30 Jan 2008, Miklos Szeredi wrote: How does this deal with certain special cases: - chroot: how will mount/df only show the for chroot relevant mounts? That is a very good question. Andreas Gruenbacher had some patches for fixing behavior of /proc/mounts under a chroot, but

Re: NFS client hang on attempt to do async blocking posix lock enqueue

2008-02-08 Thread Jeff Layton
On Fri, 8 Feb 2008 13:49:01 -0500 (EST) david m. richter [EMAIL PROTECTED] wrote: On Fri, 8 Feb 2008, J. Bruce Fields wrote: On Fri, Feb 08, 2008 at 07:15:02AM -0500, Jeff Layton wrote: On Thu, 7 Feb 2008 18:26:18 -0500 J. Bruce Fields [EMAIL PROTECTED] wrote: On Sun, Jan 20,

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

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

Re: [RFC] ext3 freeze feature

2008-02-08 Thread Christoph Hellwig
On Fri, Feb 08, 2008 at 08:26:57AM -0500, Andreas Dilger wrote: You may as well make the common ioctl the same as the XFS version, both by number and parameters, so that applications which already understand the XFS ioctl will work on other filesystems. Yes. In facy you should be able to lift

Re: NFS client hang on attempt to do async blocking posix lock enqueue

2008-02-08 Thread Jeff Layton
On Thu, 7 Feb 2008 18:26:18 -0500 J. Bruce Fields [EMAIL PROTECTED] wrote: On Sun, Jan 20, 2008 at 09:58:59AM -0500, Oleg Drokin wrote: Hello! On Jan 18, 2008, at 6:07 PM, J. Bruce Fields wrote: On Thu, Nov 29, 2007 at 02:41:57PM -0800, Marc Eshel wrote: The problem seems to be with

Re: NFS client hang on attempt to do async blocking posix lock enqueue

2008-02-08 Thread J. Bruce Fields
On Fri, Feb 08, 2008 at 03:54:14PM -0500, Jeff Layton wrote: Interesting. It's not clear me why the underlying filesystem would make any difference there. Though now that I look, it looks like fl_grant really only gets called from dlm code, and that queues up the block for an immediate grant

Re: [RFC] ext3 freeze feature

2008-02-08 Thread Andreas Dilger
On Feb 08, 2008 19:48 +0900, Takashi Sato wrote: OK I would like to implement the freeze feature on VFS as the filesystem independent ioctl so that it can be available on filesystems that have already had write_super_lockfs() and unlockfs(). The usage for the freeze ioctl is the following.

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

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

Re: NFS client hang on attempt to do async blocking posix lock enqueue

2008-02-08 Thread Jeff Layton
On Fri, 8 Feb 2008 16:12:28 -0500 J. Bruce Fields [EMAIL PROTECTED] wrote: On Fri, Feb 08, 2008 at 03:54:14PM -0500, Jeff Layton wrote: Interesting. It's not clear me why the underlying filesystem would make any difference there. Though now that I look, it looks like fl_grant really only

Re: NFS client hang on attempt to do async blocking posix lock enqueue

2008-02-08 Thread J. Bruce Fields
On Fri, Feb 08, 2008 at 07:15:02AM -0500, Jeff Layton wrote: On Thu, 7 Feb 2008 18:26:18 -0500 J. Bruce Fields [EMAIL PROTECTED] wrote: On Sun, Jan 20, 2008 at 09:58:59AM -0500, Oleg Drokin wrote: Hello! On Jan 18, 2008, at 6:07 PM, J. Bruce Fields wrote: On Thu, Nov 29, 2007

Re: [patch 01/26] mount options: add documentation

2008-02-08 Thread Miklos Szeredi
Could also please explain why you want to go via user mounts. Other OS use a daemon for that, which e.g. can maintain access controls. How do you want to manage this? The unprivileged mounts patches do contain a simple form of access control. I don't think anything more is needed,

[PATCH 1/3] udf: kill udf_set_blocksize

2008-02-08 Thread Christoph Hellwig
This helper has been quite useless since sb_min_blocksize was introduced and is misnamed while we're at it. Just opencode the few lines in the caller instead. Signed-off-by: Christoph Hellwig [EMAIL PROTECTED] Index: linux-2.6/fs/udf/super.c

[PATCH 2/3] udf: kill useless file header comments for vfs method implementations

2008-02-08 Thread Christoph Hellwig
There's not need to document vfs method invocation rules, we have Documentation/filesystems/vfs.txt and Documentation/filesystems/Locking for that. Also a lot of these comments where either plain wrong or horrible out of date. Signed-off-by: Christoph Hellwig [EMAIL PROTECTED] Index:

[PATCH 3/3] udf: move headers out include/linux/

2008-02-08 Thread Christoph Hellwig
There's really no reason to keep udf headers in include/linux as they're not used by anything but fs/udf/. This patch merges most of include/linux/udf_fs_i.h into fs/udf/udf_i.h, include/linux/udf_fs_sb.h into fs/udf/udf_sb.h and include/linux/udf_fs.h into fs/udf/udfdecl.h. The only thing

Re: [2.6.24 REGRESSION] BUG: Soft lockup - with VFS

2008-02-08 Thread Pete Zaitcev
On Tue, 5 Feb 2008 14:05:06 -0800, Andrew Morton [EMAIL PROTECTED] wrote: http://students.zipernowsky.hu/~oliverp/kernel/regression_2624/ I think ub.c is basically abandoned in favour of usb-storage. If so, perhaps we should remove or disble ub.c? Looks like it's just Tomo or Jens made a