OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea9e7b5
)
ocfs2: fix exit-while-locked bug in ocfs2_queue_orphans()
author
Mark Fasheh
<mark.fasheh@oracle.com>
Mon, 3 Dec 2007 22:06:23 +0000
(14:06 -0800)
committer
Mark Fasheh
<mark.fasheh@oracle.com>
Mon, 17 Dec 2007 18:49:43 +0000
(10:49 -0800)
We're holding the cluster lock when a failure might happen in
ocfs2_dir_foreach() so it needs to be released.
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
fs/ocfs2/journal.c
patch
|
blob
|
history
diff --git
a/fs/ocfs2/journal.c
b/fs/ocfs2/journal.c
index
f9d01e2
..
7e5f7ce
100644
(file)
--- a/
fs/ocfs2/journal.c
+++ b/
fs/ocfs2/journal.c
@@
-1277,11
+1277,12
@@
static int ocfs2_queue_orphans(struct ocfs2_super *osb,
ocfs2_orphan_filldir);
if (status) {
mlog_errno(status);
- goto out;
+ goto out
_cluster
;
}
*head = priv.head;
+out_cluster:
ocfs2_meta_unlock(orphan_dir_inode, 0);
out:
mutex_unlock(&orphan_dir_inode->i_mutex);