search for: dlm_lock

Displaying 18 results from an estimated 18 matches for "dlm_lock".

Did you mean: lm_lock
2007 May 17
1
[PATCH] ocfs: use list_for_each_entry where benefical
...st_for_each_entry(mle, &dlm->mle_hb_events, hb_events) { if (node_up) dlm_mle_node_up(dlm, mle, NULL, idx); else @@ -2434,7 +2424,7 @@ static int dlm_is_lockres_migrateable(st int ret; int i; int count = 0; - struct list_head *queue, *iter; + struct list_head *queue; struct dlm_lock *lock; assert_spin_locked(&res->spinlock); @@ -2453,8 +2443,7 @@ static int dlm_is_lockres_migrateable(st ret = 0; queue = &res->granted; for (i = 0; i < 3; i++) { - list_for_each(iter, queue) { - lock = list_entry(iter, struct dlm_lock, list); + list_for_each_entry(l...
2010 Aug 26
1
[PATCH 2/5] ocfs2/dlm: add lockres as parameter to dlm_new_lock()
Wether the dlm_lock needs to access lvb or not depends on dlm_lock_resource it belongs to. So a new parameter "struct dlm_lock_resource *res" is added to dlm_new_lock() so that we can know if we need to allocate lvb for the dlm_lock. And we have to make the lockres availale for calling dlm_new_lock(). Signe...
2009 Jul 31
3
[PATCH] Remove redundant BUG_ON in __dlm_queue_ast
...t BUG_ON() Signed-off-by: Goldwyn Rodrigues <rgoldwyn at suse.de> --- diff --git a/fs/ocfs2/dlm/dlmast.c b/fs/ocfs2/dlm/dlmast.c index d07ddbe..81eff8e 100644 --- a/fs/ocfs2/dlm/dlmast.c +++ b/fs/ocfs2/dlm/dlmast.c @@ -103,7 +103,6 @@ static void __dlm_queue_ast(struct dlm_ctxt *dlm, struct dlm_lock *lock) lock->ast_pending, lock->ml.type); BUG(); } - BUG_ON(!list_empty(&lock->ast_list)); if (lock->ast_pending) mlog(0, "lock has an ast getting flushed right now\n"); -- Goldwyn
2009 Jun 19
1
[PATCH] ocfs2: Provide the ocfs2_dlm_lvb_valid() stack API.
...glue.c | 13 +++++++------ fs/ocfs2/stackglue.h | 6 ++++++ 4 files changed, 32 insertions(+), 6 deletions(-) diff --git a/fs/ocfs2/stack_o2cb.c b/fs/ocfs2/stack_o2cb.c index fcd120f..3f66137 100644 --- a/fs/ocfs2/stack_o2cb.c +++ b/fs/ocfs2/stack_o2cb.c @@ -236,6 +236,16 @@ static int o2cb_dlm_lock_status(union ocfs2_dlm_lksb *lksb) return dlm_status_to_errno(lksb->lksb_o2dlm.status); } +/* + * o2dlm aways has a "valid" LVB. If the dlm loses track of the LVB + * contents, it will zero out the LVB. Thus the caller can always trust + * the contents. + */ +static int o2cb_dlm_...
2014 Sep 10
1
How to unlock a bloked resource? Thanks
...he cluster is hang up may be for dead lock. We use the debugfs.ocfs tool founding that one resource is holding by one node who has it for long time and another node can still wait for the resource. So the cluster is hang up. debugfs.ocfs2 -R "fs_locks -B" /dev/dm-0 debugfs.ocfs2 -R "dlm_locks LOCKID_XXX" /dev/dm-0 How to unlock the lock held by the node? Is there some commands to unlock the resource? Thanks. ------------------------------------------------------------------------------------------------------------------------------------- ???????????????????????????????????????...
2014 Sep 10
1
How to unlock a bloked resource? Thanks
...he cluster is hang up may be for dead lock. We use the debugfs.ocfs tool founding that one resource is holding by one node who has it for long time and another node can still wait for the resource. So the cluster is hang up. debugfs.ocfs2 -R "fs_locks -B" /dev/dm-0 debugfs.ocfs2 -R "dlm_locks LOCKID_XXX" /dev/dm-0 How to unlock the lock held by the node? Is there some commands to unlock the resource? Thanks. ------------------------------------------------------------------------------------------------------------------------------------- ???????????????????????????????????????...
2010 Aug 26
1
Announce: Lustre 1.8.4 is available!
...ferent files. https://bugzilla.lustre.org/show_bug.cgi?id=17485 - Fix multiple issues related to the grant space. The problem manifests itself as an OST failing write requests with ENOSPC while some free space remains. https://bugzilla.lustre.org/show_bug.cgi?id=22755 - The dlm_locks slab can grow significantly and consumes a lot of memory on the server. This is fixed by imposing an hardlimit to grant_plan. https://bugzilla.lustre.org/show_bug.cgi?id=22476 * Lustre Sysadmins may also be interested in the details of: - https://bugzilla.lustre.org/show_bug.cg...
2010 Aug 26
1
Announce: Lustre 1.8.4 is available!
...ferent files. https://bugzilla.lustre.org/show_bug.cgi?id=17485 - Fix multiple issues related to the grant space. The problem manifests itself as an OST failing write requests with ENOSPC while some free space remains. https://bugzilla.lustre.org/show_bug.cgi?id=22755 - The dlm_locks slab can grow significantly and consumes a lot of memory on the server. This is fixed by imposing an hardlimit to grant_plan. https://bugzilla.lustre.org/show_bug.cgi?id=22476 * Lustre Sysadmins may also be interested in the details of: - https://bugzilla.lustre.org/show_bug.cg...
2008 Sep 01
1
(no subject)
Hello, We just experienced a hang that looks superficially very similar to http://www.mail-archive.com/ocfs2-users at oss.oracle.com/msg02359.html There are 3 nodes in the cluster ocfs2-1.4.1 rhel 5.2. Versions, uname's in the attached text file which also includes fs_locks dumps and various other diagnostics. The lock up happened when we were restarting a java application that was
2014 Sep 26
2
One node hangs up issue requiring goog idea, thanks
...y RO Holders: 0 EX Holders: 0 Pending Action: Convert Pending Unlock Action: None Requested Mode: Exclusive Blocking Mode: No Lock PR > Gets: 318317 Fails: 0 Waits (usec) Total: 128622 Max: 3 EX > Gets: 706878 Fails: 0 Waits (usec) Total: 284967 Max: 2 Disk Refreshes: 0 debugfs: dlm_locks M00000000000000046e011700000000 Lockres: M00000000000000046e011700000000 Owner: 2 State: 0x0 Last Used: 0 ASTs Reserved: 0 Inflight: 0 Migration Pending: No Refs: 4 Locks: 2 On Lists: None Reference Map: 1 Lock-Queue Node Level Conv Cookie Refs AST BAST Pend...
2009 Jan 14
15
Backport patches to ocfs2 1.4 tree from mainline
Found 15 patches (out of 162) that appeared relevant to ocfs2 1.4. Please review. Sunil
2006 Apr 14
1
[RFC: 2.6 patch] fs/ocfs2/: remove unused exports
...rc1-mm2-full/fs/ocfs2/dlm/dlmmaster.c.old 2006-04-14 12:44:19.000000000 +0200 +++ linux-2.6.17-rc1-mm2-full/fs/ocfs2/dlm/dlmmaster.c 2006-04-14 12:44:25.000000000 +0200 @@ -2208,7 +2208,6 @@ mlog(0, "returning %d\n", ret); return ret; } -EXPORT_SYMBOL_GPL(dlm_migrate_lockres); int dlm_lock_basts_flushed(struct dlm_ctxt *dlm, struct dlm_lock *lock) {
2008 Apr 02
10
[PATCH 0/62] Ocfs2 updates for 2.6.26-rc1
..._slots. ocfs2: De-magic the in-memory slot map. ocfs2: Define the contents of the slot_map file. ocfs2: New slot map format ocfs2: Separate out dlm lock functions. ocfs2: Use global DLM_ constants in generic code. ocfs2: Use -errno instead of dlm_status for ocfs2_dlm_lock/unlock() API. ocfs2: Create the lock status block union. ocfs2: Introduce the new ocfs2_cluster_connect/disconnect() API. ocfs2: Abstract out node number queries. ocfs2: Move o2hb functionality into the stack glue. ocfs2: Remove CANCELGRANT from the view of dlmglue....
2012 Mar 07
1
[HELP!]GFS2 in the xen 4.1.2 does not work!
[This email is either empty or too large to be displayed at this time]
2014 Aug 21
1
Cluster blocked, so as to reboot all nodes to avoid it. Is there any patchs for it? Thanks.
Hi, everyone And we have the blocked cluster several times, and the log is always, we have to reboot all the node of the cluster to avoid it. Is there any patch that had fix this bug? [<ffffffff817539a5>] schedule_timeout+0x1e5/0x250 [<ffffffff81755a77>] wait_for_completion+0xa7/0x160 [<ffffffff8109c9b0>] ? try_to_wake_up+0x2c0/0x2c0 [<ffffffffa0564063>]
2014 Aug 21
1
Cluster blocked, so as to reboot all nodes to avoid it. Is there any patchs for it? Thanks.
Hi, everyone And we have the blocked cluster several times, and the log is always, we have to reboot all the node of the cluster to avoid it. Is there any patch that had fix this bug? [<ffffffff817539a5>] schedule_timeout+0x1e5/0x250 [<ffffffff81755a77>] wait_for_completion+0xa7/0x160 [<ffffffff8109c9b0>] ? try_to_wake_up+0x2c0/0x2c0 [<ffffffffa0564063>]
2006 Aug 15
0
[git patches] ocfs2 updates
...nts diff --git a/fs/ocfs2/dlm/dlmmaster.c b/fs/ocfs2/dlm/dlmmaster.c index 1b8346d..9503240 100644 --- a/fs/ocfs2/dlm/dlmmaster.c +++ b/fs/ocfs2/dlm/dlmmaster.c @@ -2375,7 +2375,6 @@ leave: mlog(0, "returning %d\n", ret); return ret; } -EXPORT_SYMBOL_GPL(dlm_migrate_lockres); int dlm_lock_basts_flushed(struct dlm_ctxt *dlm, struct dlm_lock *lock) { diff --git a/fs/ocfs2/dlm/dlmunlock.c b/fs/ocfs2/dlm/dlmunlock.c index b0c3134..37be4b2 100644 --- a/fs/ocfs2/dlm/dlmunlock.c +++ b/fs/ocfs2/dlm/dlmunlock.c @@ -155,7 +155,7 @@ static enum dlm_status dlmunlock_common( else status =...
2010 Jan 21
4
dlmglue fixes
David, So here are the two patches. Remove all patches that you have and apply these. The first one is straight forward. The second one will hopefully fix the livelock issue you have been encountering. People reviewing the patches should note that the second one is slightly different than the one I posted earlier. It removes the BUG_ON in the if condition where we jump to update_holders. The