linux-kernel mailing list

FromSubjectsort iconDate
Vasily Tarasov
[RFC][PATCH 7/9] cgroups: block: cfq: I/O bandwidth controll...
From: Vasily Tarasov <vtaras@openvz.org> Takes into account requests that are in driver now. Before that we switched cgroup if there were no requests to service in this cgroup. Now we also check that there are no requests from this cgroups currently processed by driver and only in this case allow switching. Signed-off-by: Vasily Tarasov <vtaras@openvz.org> --- --- linux-2.6.25-rc5-mm1/include/linux/cfq-iosched.h.rqindrv 2008-02-15 01:10:42.000000000 -0500 +++ linux-2.6.25-rc5-mm1...
Feb 15, 2:59 am 2008
Vasily Tarasov
[RFC][PATCH 4/9] cgroups: block: cfq: I/O bandwidth controll...
From: Vasily Tarasov <vtaras@openvz.org> Adds hooks to CFQ code to form proper data structures interconnection. Signed-off-by: Vasily Tarasov <vtaras@openvz.org> --- --- linux-2.6.25-rc5-mm1/include/linux/cfqio-cgroup.h.creat-elim 2008-02-15 01:07:29.000000000 -0500 +++ linux-2.6.25-rc5-mm1/include/linux/cfqio-cgroup.h 2008-02-15 01:08:25.000000000 -0500 @@ -36,6 +36,12 @@ struct cfqio_ss_css { extern struct cfqio_cgroup_data * cfqio_cgrp_findcreate(struct cfqio_ss_css *, struc...
Feb 15, 2:59 am 2008
Vasily Tarasov
[RFC][PATCH 8/9] cgroups: block: cfq: I/O bandwidth controll...
From: Vasily Tarasov <vtaras@openvz.org> Configurable cgroup time slice support. Signed-off-by: Vasily Tarasov <vtaras@openvz.org> --- --- linux-2.6.25-rc5-mm1/block/cfq-iosched.c.slice 2008-02-15 01:11:45.000000000 -0500 +++ linux-2.6.25-rc5-mm1/block/cfq-iosched.c 2008-02-15 01:12:22.000000000 -0500 @@ -2150,6 +2150,7 @@ SHOW_FUNCTION(cfq_slice_idle_show, cfqd- SHOW_FUNCTION(cfq_slice_sync_show, cfqd->cfq_slice[1], 1); SHOW_FUNCTION(cfq_slice_async_show, cfqd->cfq_slice...
Feb 15, 2:59 am 2008
Vasily Tarasov
[RFC][PATCH 9/9] cgroups: block: cfq: I/O bandwidth controll...
From: Vasily Tarasov <vtaras@openvz.org> Adds the description to the Kconfig file. Signed-off-by: Vasily Tarasov <vtaras@openvz.org> --- --- linux-2.6.25-rc5-mm1/init/Kconfig.kconfig 2008-02-15 01:01:40.000000000 -0500 +++ linux-2.6.25-rc5-mm1/init/Kconfig 2008-02-15 01:13:12.000000000 -0500 @@ -316,6 +316,13 @@ config GROUP_SCHED This feature lets CPU scheduler recognize task groups and control CPU bandwidth allocation to such task groups. +config CGROUP_CFQIO + boo...
Feb 15, 2:59 am 2008
Vasily Tarasov
[RFC][PATCH 2/9] cgroups: block: cfq: I/O bandwidth controll...
From: Vasily Tarasov <vtaras@openvz.org> Registers the cfqio_subsys subsystem in the CGroups framework. Signed-off-by: Vasily Tarasov <vtaras@openvz.org> --- --- /dev/null 2008-02-14 08:57:49.255923728 -0500 +++ linux-2.6.25-rc5-mm1/include/linux/cfqio-cgroup.h 2008-02-15 01:06:40.000000000 -0500 @@ -0,0 +1,26 @@ +/* + * include/linux/cfqio-cgroup.h + * + * cfqio_subsys: CGroup subsystem that allows CFQ recognize + * cgroups and perform scheduling according to this. + * + * ...
Feb 15, 2:59 am 2008
Vasily Tarasov
[RFC][PATCH 3/9] cgroups: block: cfq: I/O bandwidth controll...
From: Vasily Tarasov <vtaras@openvz.org> Extends the original CFQ data sructures and adds the major cfqio_subsys data structure: cfqio_cgroup_data. Adds several helper functions, which will be called later from CFQ code to form proper data structures interconnection. Signed-off-by: Vasily Tarasov <vtaras@openvz.org> --- --- linux-2.6.25-rc5-mm1/include/linux/cfqio-cgroup.h.mainstruct 2008-02-15 01:06:40.000000000 -0500 +++ linux-2.6.25-rc5-mm1/include/linux/cfqio-cgroup.h 2008-0...
Feb 15, 2:59 am 2008
Vasily Tarasov
[RFC][PATCH 1/9] cgroups: block: cfq: I/O bandwidth controll...
From: Vasily Tarasov <vtaras@openvz.org> Simply moves CFQ data structure definitions to the header file. Signed-off-by: Vasily Tarasov <vtaras@openvz.org> --- --- /dev/null 2008-02-14 08:57:49.255923728 -0500 +++ linux-2.6.25-rc5-mm1/include/linux/cfq-iosched.h 2008-02-15 01:03:38.000000000 -0500 @@ -0,0 +1,103 @@ +#ifndef _LINUX_CFQ_IOSCHED_H +#define _LINUX_CFQ_IOSCHED_H + +/* + * Most of our rbtree usage is for sorting with min extraction, so + * if we cache the leftmost n...
Feb 15, 2:59 am 2008
Vasily Tarasov
[RFC][PATCH 6/9] cgroups: block: cfq: I/O bandwidth controll...
From: Vasily Tarasov <vtaras@openvz.org> Introduces cgroups scheduling. Each time when I/O request is placed on per-process request queue and there were no other requests from this cgroup, this cgroup is added to the end of active cgroups list. This list is service in round-robin fashion. Switching between cgroups happens eiher when cgroup expires its time slice, either if there are no more requests from it. Each time I/O request is completed, we check if it was the last request from cgroup,...
Feb 15, 2:59 am 2008
Vasily Tarasov
[RFC][PATCH 5/9] cgroups: block: cfq: I/O bandwidth controll...
From: Vasily Tarasov <vtaras@openvz.org> Switches the CFQ scheduler to use per-cgroup queue tree, instead one queue tree per device. Signed-off-by: Vasily Tarasov <vtaras@openvz.org> --- --- linux-2.6.25-rc5-mm1/include/linux/cfq-iosched.h.switch 2008-02-15 01:07:29.000000000 -0500 +++ linux-2.6.25-rc5-mm1/include/linux/cfq-iosched.h 2008-02-15 01:09:09.000000000 -0500 @@ -70,9 +70,8 @@ struct cfq_data { struct cfqio_cgroup_data cfqio_cgroup; #endif /* - * rr list of que...
Feb 15, 2:59 am 2008
Vasily Tarasov
[RFC][PATCH 0/9] cgroups: block: cfq: I/O bandwidth controll...
From: Vasily Tarasov <vtaras@openvz.org> The following patchset introduces I/O bandwidth controlling subsystem for the CGroups framework based on the CFQ scheduler. User can assign a priority from 0 to 7 to a cgroup, and I/O bandwidth will be adjusted proportionally. This effect is achieved by introducing a certain modifications to CFQ. Now there is not only per process time slice, but also per cgroup time slice. During cgroup's time slice only processes from current cgroup can add requests ...
Feb 15, 2:53 am 2008
Casey Schaufler
[PATCH] (02/15/08 Linus git) Smack unlabeled outgoing ambien...
From: Casey Schaufler <casey@schaufler-ca.com> Smack uses CIPSO labeling, but allows for unlabeled packets by specifying an "ambient" label that is applied to incoming unlabeled packets. Because the other end of the connection may dislike IP options, and ssh is one know application that behaves thus, it is prudent to respond in kind. This patch changes the network labeling behavior such that an outgoing packet that would be given a CIPSO label that matches the ambient label is left unlabeled...
Feb 15, 7:24 pm 2008
Chris Holvenstot
2.6.25-rc2 - Missing in Action?
Per chance is 2.6.25-rc2 missing in action? I see the announcement from about 3 and a half hours ago, but the latest patch that I see is rc1-git4. I even took the unheard of action of hitting refresh on my browser. No joy --
Feb 15, 7:52 pm 2008
Arjan van de Ven
[PATCH] x86: add CONFIG_CC_STACKPROTECTOR selftest
(against x86/mm git) From: Arjan van de Ven <arjan@linux.intel.com> Subject: [PATCH] x86: add CONFIG_CC_STACKPROTECTOR selftest This patch adds a simple self-test capability to the stackprotector feature. The test deliberately overflows a stack buffer and then checks if the canary trap function gets called. Signed-off-by: Arjan van de Ven <arjan@linux.intel.com> --- kernel/panic.c | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 57 insertions(+), ...
Feb 15, 7:33 pm 2008
Jonas Bonn
pci_device_id definition cleanups
I've done some work on cleaning up the definitions of pci_device_id to make them "static const" (where possible) and to make sure they go into __devinitconst. There are about 350 changes of the type shown in the diff at the end of this mail. =EF=BB=BFAll these changes are in my public GIT tree at: git://www.southpole.se/~jonas/git/linux.git (Based on 2.6.25-rc2) In addition to these pci_device_id changes, there are a few changesets that move "const" data from __devinitdata to __devinitconst...
Feb 15, 7:21 pm 2008
Ferenc Wagner
inode leak in 2.6.24?
Hi, 5 days ago I pulled the git tree (HEAD was 25f666300625d894ebe04bac2b4b3aadb907c861), added two minor patches (the vmsplice fix and the GFS1 exports), compiled and booted the kernel. Things are working OK, but I noticed that inode usage has been steadily rising since then (see attached graph, unless lost in transit). The real filesystems used by the machine are XFS. I wonder if it may be some kind of bug and if yes, whether it has been fixed already. Feel free to ask for any missing inform...
Feb 15, 7:18 pm 2008
Dave Hansen
[PATCH 00/30] Read-only bind mounts (-mm resend)
This is against current Linus git. Miklos, if you send me a copy of your current unprivledged mount code merged against mainline, I'll merge with this. git://git.kernel.org/pub/scm/linux/kernel/git/daveh/linux-2.6-robind.git This rolls up all the -mm bugfixes that were accumulated, and addresses some new review comments from Al. Also contains some reworking from hch and a patch from Jeff Dike. Just posting here to let everyone have a sniff before we resend it back to -mm. --- Why do w...
Feb 15, 6:37 pm 2008
Dave Hansen
[PATCH 30/30] r/o bind mounts: debugging for missed calls
There have been a few oopses caused by 'struct file's with NULL f_vfsmnts. There was also a set of potentially missed mnt_want_write()s from dentry_open() calls. This patch provides a very simple debugging framework to catch these kinds of bugs. It will WARN_ON() them, but should stop us from having any oopses or mnt_writer count imbalances. I'm quite convinced that this is a good thing because it found bugs in the stuff I was working on as soon as I wrote it. [hch: made it conditional on ...
Feb 15, 6:38 pm 2008
Dave Hansen
[PATCH 29/30] r/o bind mounts: honor mount writer counts at ...
Originally from: Herbert Poetzl <herbert@13thfloor.at> This is the core of the read-only bind mount patch set. Note that this does _not_ add a "ro" option directly to the bind mount operation. If you require such a mount, you must first do the bind, then follow it up with a 'mount -o remount,ro' operation: If you wish to have a r/o bind mount of /foo on bar: mount --bind /foo /bar mount -o remount,ro /bar Acked-by: Al Viro <viro@ZenIV.linux.org.uk> Signed-off-by: Christop...
Feb 15, 6:38 pm 2008
Dave Hansen
[PATCH 28/30] r/o bind mounts: track numbers of writers to m...
This is the real meat of the entire series. It actually implements the tracking of the number of writers to a mount. However, it causes scalability problems because there can be hundreds of cpus doing open()/close() on files on the same mnt at the same time. Even an atomic_t in the mnt has massive scalaing problems because the cacheline gets so terribly contended. This uses a statically-allocated percpu variable. All want/drop operations are local to a cpu as long that cpu operates on the same...
Feb 15, 6:37 pm 2008
Dave Hansen
[PATCH 27/30] r/o bind mounts: get callers of vfs_mknod/crea...
This takes care of all of the direct callers of vfs_mknod(). Since a few of these cases also handle normal file creation as well, this also covers some calls to vfs_create(). So that we don't have to make three mnt_want/drop_write() calls inside of the switch statement, we move some of its logic outside of the switch and into a helper function suggested by Christoph. This also encapsulates a fix for mknod(S_IFREG) that Miklos found. Acked-by: Al Viro <viro@ZenIV.linux.org.uk> Signed-...
Feb 15, 6:37 pm 2008
Dave Hansen
[PATCH 26/30] r/o bind mounts: check mnt instead of superblo...
If we depend on the inodes for writeability, we will not catch the r/o mounts when implemented. This patches uses __mnt_want_write(). It does not guarantee that the mount will stay writeable after the check. But, this is OK for one of the checks because it is just for a printk(). The other two are probably unnecessary and duplicate existing checks in the VFS. This won't make them better checks than before, but it will make them detect r/o mounts. Acked-by: Al Viro <viro@ZenIV.linux.org...
Feb 15, 6:37 pm 2008
Dave Hansen
[PATCH 22/30] r/o bind mounts: elevate write count for chmod...
chown/chmod,etc... don't call permission in the same way that the normal "open for write" calls do. They still write to the filesystem, so bump the write count during these operations. Acked-by: Al Viro <viro@ZenIV.linux.org.uk> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dave Hansen <haveblue@us.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> --- linux-2.6.git-dave/fs/open.c | 39 ++++++++++++++++++++++++++++++--------- 1 file c...
Feb 15, 6:37 pm 2008
Dave Hansen
[PATCH 25/30] r/o bind mounts: make access() use new r/o hel...
It is OK to let access() go without using a mnt_want/drop_write() pair because it doesn't actually do writes to the filesystem, and it is inherently racy anyway. This is a rare case when it is OK to use __mnt_is_readonly() directly. Acked-by: Al Viro <viro@ZenIV.linux.org.uk> Signed-off-by: Christoph Hellwig <hch@infradead.org> Signed-off-by: Dave Hansen <haveblue@us.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> --- linux-2.6.git-dave/fs/open.c | ...
Feb 15, 6:37 pm 2008
Dave Hansen
[PATCH 24/30] r/o bind mounts: elevate count for xfs timesta...
Elevate the write count during the xfs m/ctime updates. XFS has to do it's own timestamp updates due to an unfortunate VFS design limitation, so it will have to track writers by itself aswell. [hch: split out from the touch_atime patch as it's not related to it at all] Acked-by: Al Viro <viro@ZenIV.linux.org.uk> Signed-off-by: Christoph Hellwig <hch@infradead.org> Signed-off-by: Dave Hansen <haveblue@us.ibm.com> --- linux-2.6.git-dave/fs/xfs/linux-2.6/xfs_iops.c | 7 -...
Feb 15, 6:37 pm 2008
Dave Hansen
[PATCH 23/30] r/o bind mounts: write counts for truncate()
Acked-by: Al Viro <viro@ZenIV.linux.org.uk> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dave Hansen <haveblue@us.ibm.com> --- linux-2.6.git-dave/fs/open.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff -puN fs/open.c~r-o-bind-mounts-elevate-writer-count-for-do_sys_truncate fs/open.c --- linux-2.6.git/fs/open.c~r-o-bind-mounts-elevate-writer-count-for-do_sys_truncate 2008-02-15 13:25:55.000000000 -0800 +++ linux-2.6.git-dave/fs/...
Feb 15, 6:37 pm 2008
Dave Hansen
[PATCH 21/30] r/o bind mounts: get write access for vfs_rena...
This also uses the little helper in the NFS code to make an if() a little bit less ugly. We introduced the helper at the beginning of the series. Acked-by: Al Viro <viro@ZenIV.linux.org.uk> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dave Hansen <haveblue@us.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> --- linux-2.6.git-dave/fs/namei.c | 4 ++++ linux-2.6.git-dave/fs/nfsd/vfs.c | 17 +++++++++++++---- 2 files changed, 17 ...
Feb 15, 6:37 pm 2008
Dave Hansen
[PATCH 20/30] r/o bind mounts: elevate write count for open()s
This is the first really tricky patch in the series. It elevates the writer count on a mount each time a non-special file is opened for write. We used to do this in may_open(), but Miklos pointed out that __dentry_open() is used as well to create filps. This will cover even those cases, while a call in may_open() would not have. There is also an elevated count around the vfs_create() call in open_namei(). See the comments for more details, but we need this to fix a 'create, remount, fail r/w...
Feb 15, 6:37 pm 2008
Dave Hansen
[PATCH 19/30] r/o bind mounts: elevate write count for ioctl...
Some ioctl()s can cause writes to the filesystem. Take these, and make them use mnt_want/drop_write() instead. Acked-by: Al Viro <viro@ZenIV.linux.org.uk> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dave Hansen <haveblue@us.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> --- linux-2.6.git-dave/fs/ext2/ioctl.c | 49 +++++++---- linux-2.6.git-dave/fs/ext3/ioctl.c | 103 +++++++++++++++--------- linux-2.6.g...
Feb 15, 6:37 pm 2008
Dave Hansen
[PATCH 18/30] r/o bind mounts: write counts for link/symlink
Acked-by: Al Viro <viro@ZenIV.linux.org.uk> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dave Hansen <haveblue@us.ibm.com> --- linux-2.6.git-dave/fs/namei.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff -puN fs/namei.c~r-o-bind-mounts-elevate-write-count-for-link-and-symlink-calls fs/namei.c --- linux-2.6.git/fs/namei.c~r-o-bind-mounts-elevate-write-count-for-link-and-symlink-calls 2008-02-15 13:25:52.000000000 -0800 +++ linux-2.6.git-dave/fs/nam...
Feb 15, 6:37 pm 2008
Dave Hansen
[PATCH 17/30] r/o bind mounts: write count for file_update_t...
Acked-by: Al Viro <viro@ZenIV.linux.org.uk> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dave Hansen <haveblue@us.ibm.com> --- linux-2.6.git-dave/fs/inode.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff -puN fs/inode.c~r-o-bind-mounts-elevate-write-count-for-file_update_time fs/inode.c --- linux-2.6.git/fs/inode.c~r-o-bind-mounts-elevate-write-count-for-file_update_time 2008-02-15 13:25:51.000000000 -0800 +++ linux-2.6.git-dave/fs/inode...
Feb 15, 6:37 pm 2008
Dave Hansen
[PATCH 06/30] merge open_namei() and do_filp_open()
open_namei() will, in the future, need to take mount write counts over its creation and truncation (via may_open()) operations. It needs to keep these write counts until any potential filp that is created gets __fput()'d. This gets complicated in the error handling and becomes very murky as to how far open_namei() actually got, and whether or not that mount write count was taken. That makes it a bad interface. All that the current do_filp_open() really does is allocate the nameidata on the s...
Feb 15, 6:37 pm 2008
Dave Hansen
[PATCH 16/30] r/o bind mounts: elevate write count for do_ut...
Now includes fix for oops seen by akpm. "never let a libc developer write your kernel code" - hch "nor, apparently, a kernel developer" - akpm Acked-by: Al Viro <viro@ZenIV.linux.org.uk> Signed-off-by: Christoph Hellwig <hch@lst.de> Cc: Valdis Kletnieks <Valdis.Kletnieks@vt.edu> Cc: Balbir Singh <balbir@in.ibm.com> Signed-off-by: Dave Hansen <haveblue@us.ibm.com> --- linux-2.6.git-dave/fs/utimes.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+),...
Feb 15, 6:37 pm 2008
Dave Hansen
[PATCH 15/30] r/o bind mounts: write counts for time functions
Acked-by: Al Viro <viro@ZenIV.linux.org.uk> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dave Hansen <haveblue@us.ibm.com> --- linux-2.6.git-dave/fs/inode.c | 45 ++++++++++++++++++------------------------ 1 file changed, 20 insertions(+), 25 deletions(-) diff -puN fs/inode.c~r-o-bind-mounts-elevate-write-count-for-do_sys_utime-and-touch_atime fs/inode.c --- linux-2.6.git/fs/inode.c~r-o-bind-mounts-elevate-write-count-for-do_sys_utime-and-touch_atime 2008-...
Feb 15, 6:37 pm 2008
Dave Hansen
[PATCH 14/30] r/o bind mounts: elevate write count for ncp_i...
Acked-by: Al Viro <viro@ZenIV.linux.org.uk> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Dave Hansen <haveblue@us.ibm.com> --- linux-2.6.git-dave/fs/ncpfs/ioctl.c | 54 +++++++++++++++++++++++++++++++++++- 1 file changed, 53 insertions(+), 1 deletion(-) diff -puN fs/ncpfs/ioctl.c~r-o-bind-mounts-elevate-write-count-during-entire-ncp_ioctl fs/ncpfs/ioctl.c --- linux-2.6.git/fs/ncpfs/ioctl.c~r-o...
Feb 15, 6:37 pm 2008
Dave Hansen
[PATCH 13/30] r/o bind mounts: elevate write count for xattr...
This basically audits the callers of xattr_permission(), which calls permission() and can perform writes to the filesystem. Acked-by: Al Viro <viro@ZenIV.linux.org.uk> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dave Hansen <haveblue@us.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> --- linux-2.6.git-dave/fs/nfsd/nfs4proc.c | 7 ++++++- linux-2.6.git-dave/fs/xattr.c | 16 ++++++++++++++-- 2 files changed, 20 insertions(...
Feb 15, 6:37 pm 2008
Dave Hansen
[PATCH 12/30] r/o bind mounts: elevate mnt_writers for unlin...
Acked-by: Al Viro <viro@ZenIV.linux.org.uk> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dave Hansen <haveblue@us.ibm.com> --- linux-2.6.git-dave/fs/namei.c | 4 ++++ linux-2.6.git-dave/ipc/mqueue.c | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff -puN fs/namei.c~r-o-bind-mounts-elevate-mnt-writers-for-vfs_unlink-callers fs/namei.c --- linux-2.6.git/fs/namei.c~r-o-bind-mounts-elevate-mnt-writers-for-vfs_unlink-callers 2008-02-15 13:25...
Feb 15, 6:37 pm 2008
Dave Hansen
[PATCH 11/30] r/o bind mounts: elevate write count for calle...
Pretty self-explanatory. Fits in with the rest of the series. Acked-by: Al Viro <viro@ZenIV.linux.org.uk> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Dave Hansen <haveblue@us.ibm.com> --- linux-2.6.git-dave/fs/namei.c | 5 +++++ linux-2.6.git-dave/fs/nfsd/nfs4recover.c | 5 +++++ 2 files changed, 10 insertions(+) diff -puN fs/namei.c~r-o-bind-mounts-elevate-mnt-writers-for-ca...
Feb 15, 6:37 pm 2008
Dave Hansen
[PATCH 10/30] r/o bind mounts: elevate write count for vfs_r...
Elevate the write count during the vfs_rmdir() call. Acked-by: Serge Hallyn <serue@us.ibm.com> Acked-by: Al Viro <viro@ZenIV.linux.org.uk> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dave Hansen <haveblue@us.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> --- linux-2.6.git-dave/fs/namei.c | 5 +++++ 1 file changed, 5 insertions(+) diff -puN fs/namei.c~r-o-bind-mounts-do_rmdir-elevate-write-count fs/namei.c --- linux-2.6.g...
Feb 15, 6:37 pm 2008
Dave Hansen
[PATCH 08/30] r/o bind mounts: create helper to drop file wr...
If someone decides to demote a file from r/w to just r/o, they can use this same code as __fput(). NFS does just that, and will use this in the next patch. Signed-off-by: Dave Hansen <haveblue@us.ibm.com> Cc: Erez Zadok <ezk@cs.sunysb.edu> Cc: Trond Myklebust <trond.myklebust@fys.uio.no> Cc: "J Bruce Fields" <bfields@fieldses.org> Acked-by: Al Viro <viro@ZenIV.linux.org.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Christoph H...
Feb 15, 6:37 pm 2008
Dave Hansen
[PATCH 05/30] do namei_flags calculation inside open_namei()
My end goal here is to make sure all users of may_open() return filps. This will ensure that we properly release mount write counts which were taken for the filp in may_open(). This patch moves the sys_open flags to namei flags calculation into fs/namei.c. We'll shortly be moving the nameidata_to_filp() calls into namei.c, and this gets the sys_open flags to a place where we can get at them when we need them. Acked-by: Al Viro <viro@ZenIV.linux.org.uk> Signed-off-by: Christoph Hellwi...
Feb 15, 6:37 pm 2008
Dave Hansen
[PATCH 03/30] check for null vfsmount in dentry_open()
Make sure no-one calls dentry_open with a NULL vfsmount argument and crap out with a stacktrace otherwise. A NULL file->f_vfsmnt has always been problematic, but with the per-mount r/o tracking we can't accept anymore at all. Acked-by: Al Viro <viro@ZenIV.linux.org.uk> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dave Hansen <haveblue@us.ibm.com> --- linux-2.6.git-dave/fs/open.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff -puN fs/open.c...
Feb 15, 6:37 pm 2008
Dave Hansen
[PATCH 07/30] r/o bind mounts: stub functions
This patch adds two function mnt_want_write() and mnt_drop_write(). These are used like a lock pair around and fs operations that might cause a write to the filesystem. Before these can become useful, we must first cover each place in the VFS where writes are performed with a want/drop pair. When that is complete, we can actually introduce code that will safely check the counts before allowing r/w<->r/o transitions to occur. Acked-by: Serge Hallyn <serue@us.ibm.com> Acked-by: Al ...
Feb 15, 6:37 pm 2008
Dave Hansen
[PATCH 09/30] r/o bind mounts: drop write during emergency r...
The emergency remount code forcibly removes FMODE_WRITE from filps. The r/o bind mount code notices that this was done without a proper mnt_drop_write() and properly gives a warning. This patch does a mnt_drop_write() to keep everything balanced. Acked-by: Al Viro <viro@ZenIV.linux.org.uk> Signed-off-by: Christoph Hellwig <hch@infradead.org> Signed-off-by: Dave Hansen <haveblue@us.ibm.com> --- linux-2.6.git-dave/fs/super.c | 20 ++++++++++++++++++-- 1 file changed, ...
Feb 15, 6:37 pm 2008
Dave Hansen
[PATCH 01/30] reiserfs: eliminate private use of struct file...
After several posts and bug reports regarding interaction with the NULL nameidata, here's a patch to clean up the mess with struct file in the reiserfs xattr code. As observed in several of the posts, there's really no need for struct file to exist in the xattr code. It was really only passed around due to the f_op->readdir() and a_ops->{prepare,commit}_write prototypes requiring it. reiserfs_prepare_write() and reiserfs_commit_write() don't actually use the struct file passed to it, and...
Feb 15, 6:37 pm 2008
Dave Hansen
[PATCH 04/30] fix up new filp allocators
Some new uses of get_empty_filp() have crept in, and are not properly taking mnt_want_write()s. This fixes them up. We really need to kill get_empty_filp(). Cc: Erez Zadok <ezk@cs.sunysb.edu> Cc: Trond Myklebust <trond.myklebust@fys.uio.no> Cc: "J Bruce Fields" <bfields@fieldses.org> Acked-by: Al Viro <viro@ZenIV.linux.org.uk> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Dave Hansen ...
Feb 15, 6:37 pm 2008
Dave Hansen
[PATCH 02/30] hppfs pass vfsmount to dentry_open()
Here's patch for hppfs that uses vfs_kern_mount to make sure it always has a procfs instance and passed the vfsmount on through the inode private data. Also fixes a procfs file_system_type leak for every attempted hppfs mount. [ jdike - gave this file a style workover, plus deleted hppfs_dentry_ops ] Acked-by: Al Viro <viro@ZenIV.linux.org.uk> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jeff Dike <jdike@linux.intel.com> Signed-off-by: Dave Hansen <have...
Feb 15, 6:37 pm 2008
Kiyoshi Ueda
[APPENDIX PATCH 13/13] dm-mpath: convert to request-based
This patch converts dm-multipath target to request-based from bio-based. Signed-off-by: Kiyoshi Ueda <k-ueda@ct.jp.nec.com> Signed-off-by: Jun'ichi Nomura <j-nomura@ce.jp.nec.com> --- drivers/md/dm-mpath.c | 228 +++++++++++++++++++++++++++++++++------------- drivers/md/dm-rq-record.h | 36 +++++++ 2 files changed, 204 insertions(+), 60 deletions(-) Index: 2.6.25-rc1/drivers/md/dm-mpath.c =================================================================== --- 2.6.25-rc1.orig...
Feb 15, 6:33 pm 2008
Kiyoshi Ueda
[APPENDIX PATCH 12/13] dm-mpath: add hw-handler interface
This patch adds a hw-handler interface for request-based dm-multipath. Signed-off-by: Kiyoshi Ueda <k-ueda@ct.jp.nec.com> Signed-off-by: Jun'ichi Nomura <j-nomura@ce.jp.nec.com> --- drivers/md/dm-hw-handler.h | 1 + 1 files changed, 1 insertion(+) Index: 2.6.25-rc1/drivers/md/dm-hw-handler.h =================================================================== --- 2.6.25-rc1.orig/drivers/md/dm-hw-handler.h +++ 2.6.25-rc1/drivers/md/dm-hw-handler.h @@ -35,6 +35,7 @@ struct hw_hand...
Feb 15, 6:33 pm 2008
Kiyoshi Ueda
[APPENDIX PATCH 11/13] dm: reject bad table load
This patch rejects bad table load for request-based dm. The following table loadings are rejected: - including non-stackable device - shrinking the current restrictions Signed-off-by: Kiyoshi Ueda <k-ueda@ct.jp.nec.com> Signed-off-by: Jun'ichi Nomura <j-nomura@ce.jp.nec.com> --- drivers/md/dm-table.c | 48 ++++++++++++++++++++++++++++++++++++++++-- drivers/md/dm.c | 25 +++++++++++++++++++++ include/linux/device-mapper.h | 9 +++++++ 3 files change...
Feb 15, 6:33 pm 2008
Kiyoshi Ueda
[APPENDIX PATCH 10/13] dm: enable request-based dm
This patch enables request-based dm. Request-based dm and bio-based dm coexist. There are some limitations between them. - OK: bio-based dm device on bio-based dm device - OK: bio-based dm device on request-based dm device - OK: request-based dm device on request-based dm device - NG: request-based dm device on bio-based dm device The type of a dm device is decided at the first table loading time. Until then, mempool creations and queue initializations are deferred. Once the type of a d...
Feb 15, 6:32 pm 2008
previous daytodaynext day
February 14, 2008February 15, 2008February 16, 2008