Displaying 4 results from an estimated 4 matches for "d_lock".
Did you mean:
g_lock
2010 Nov 25
4
[PATCH]improve suspend_evtchn lock processing
...Liu
diff -r 3c4c3d48a835 tools/libxc/xc_suspend.c
--- a/tools/libxc/xc_suspend.c Thu Aug 26 11:16:56 2010 +0100
+++ b/tools/libxc/xc_suspend.c Thu Nov 25 18:44:35 2010 +0800
@@ -16,8 +16,40 @@
#include "xc_private.h"
#include "xenguest.h"
+#include
#define SUSPEND_LOCK_FILE "/var/lib/xen/suspend_evtchn"
+/* cleanup obsolete suspend lock file which is unlinked for any reason,
+so that current process can get lock */
+static void clean_obsolete_lock(int domid)
+{
+ int fd, pid, n;
+ char buf[128];
+ char suspend_file[256];
+
+ snprintf(suspen...
2010 Jan 14
0
[PATCH] Include subvolume= and metadata_ratio= in /cat/proc
...quot;,discard");
if (!(root->fs_info->sb->s_flags & MS_POSIXACL))
seq_puts(seq, ",noacl");
+ if( root->fs_info->metadata_ratio )
+ seq_printf(seq, ",metadata_ratio=%d",
+ root->fs_info->metadata_ratio);
+ spin_lock(&vfs->mnt_root->d_lock);
+ if (vfs->mnt_root->d_name.len != 1 ||
+ vfs->mnt_root->d_name.name[0] != ''/''){
+ seq_puts(seq, ",subvol=");
+ seq_puts(seq, vfs->mnt_root->d_name.name);
+ }
+ spin_unlock(&vfs->mnt_root->d_lock);
return 0;
}
--
gpg key@ keys...
2008 Jul 20
26
[PATCH] NFS support for btrfs - v2
..._NON_CONNECTABLE;
+
+ fid->objectid = BTRFS_I(inode)->location.objectid;
+ fid->root_objectid = BTRFS_I(inode)->root->objectid;
+ fid->gen = inode->i_generation;
+
+ if (connectable && !S_ISDIR(inode->i_mode)) {
+ struct inode *parent;
+
+ spin_lock(&dentry->d_lock);
+
+ parent = dentry->d_parent->d_inode;
+ fid->parent_objectid = BTRFS_I(parent)->location.objectid;
+ fid->parent_gen = parent->i_generation;
+
+ spin_unlock(&dentry->d_lock);
+ len = BTRFS_FID_CONNECTABLE;
+ }
+ *max_len = len;
+
+ /* We return length itself for th...
2010 Aug 12
59
[PATCH 00/15] RFC xen device model support
Hi all,
this is the long awaited patch series to add xen device model support in
qemu; the main author is Anthony Perard.
Developing this series we tried to come up with the cleanest possible
solution from the qemu point of view, limiting the amount of changes to
common code as much as possible. The end result still requires a couple
of hooks in piix_pci but overall the impact should be very