All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Teigland <teigland@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] cvs head patch for 2.6.22-rc
Date: Mon, 14 May 2007 10:36:05 -0500	[thread overview]
Message-ID: <20070514153605.GD30043@redhat.com> (raw)

For anyone interested in using cvs head with 2.6.22-rc kernels, here's a
patch.  It'll be checked in when 2.6.22 is released.

Index: gfs-kernel/src/gfs/ops_file.c
===================================================================
RCS file: /cvs/cluster/cluster/gfs-kernel/src/gfs/ops_file.c,v
retrieving revision 1.32
diff -u -r1.32 ops_file.c
--- gfs-kernel/src/gfs/ops_file.c	4 May 2007 14:49:35 -0000	1.32
+++ gfs-kernel/src/gfs/ops_file.c	11 May 2007 15:26:45 -0000
@@ -1573,13 +1573,7 @@
 
 	if (sdp->sd_args.ar_localflocks) {
 		if (IS_GETLK(cmd)) {
-			int conflict;
-			struct file_lock tmp;
-
-			conflict = posix_test_lock(file, fl, &tmp);
-			fl->fl_type = F_UNLCK;
-			if (conflict)
-				memcpy(fl, &tmp, sizeof(struct file_lock));
+			posix_test_lock(file, fl);
 			return 0;
 		} else {
 			return posix_lock_file_wait(file, fl);
Index: gfs-kernel/src/gfs/sys.c
===================================================================
RCS file: /cvs/cluster/cluster/gfs-kernel/src/gfs/sys.c,v
retrieving revision 1.3
diff -u -r1.3 sys.c
--- gfs-kernel/src/gfs/sys.c	18 Jul 2006 20:48:20 -0000	1.3
+++ gfs-kernel/src/gfs/sys.c	11 May 2007 15:26:45 -0000
@@ -86,7 +86,6 @@
 };
 
 static struct kset gfs_kset = {
-	.subsys = &fs_subsys,
 	.kobj   = {.name = "gfs",},
 	.ktype  = &gfs_ktype,
 };
@@ -121,6 +120,7 @@
 {
 	gfs_sys_margs = NULL;
 	spin_lock_init(&gfs_sys_margs_lock);
+	kobj_set_kset_s(&gfs_kset, fs_subsys);
 	return kset_register(&gfs_kset);
 }
 
Index: gnbd-kernel/src/gnbd.c
===================================================================
RCS file: /cvs/cluster/cluster/gnbd-kernel/src/gnbd.c,v
retrieving revision 1.18
diff -u -r1.18 gnbd.c
--- gnbd-kernel/src/gnbd.c	5 Jan 2007 23:01:58 -0000	1.18
+++ gnbd-kernel/src/gnbd.c	11 May 2007 15:26:45 -0000
@@ -714,7 +714,7 @@
 		if (bdev) {
 			blk_run_queue(dev->disk->queue);
 			fsync_bdev(bdev);
-			invalidate_bdev(bdev, 0);
+			invalidate_bdev(bdev); 
 		}
 		up(&dev->do_it_lock);
 		return 0;



                 reply	other threads:[~2007-05-14 15:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070514153605.GD30043@redhat.com \
    --to=teigland@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.