Wengang Wang
2010-May-31 12:44 UTC
[Ocfs2-devel] [PATCH] ocfs2/dlm: print lockres under spin lock
Oh, Sorry, please ignore this post. I made a mistake. On 10-05-31 14:43, Wengang Wang wrote:> print lockres under lockres->spinlock. > > Signed-off-by: Wengang Wang <wen.gang.wang at oracle.com> > --- > fs/ocfs2/dlm/dlmconvert.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/fs/ocfs2/dlm/dlmconvert.c b/fs/ocfs2/dlm/dlmconvert.c > index 9f30491..a0edf7e 100644 > --- a/fs/ocfs2/dlm/dlmconvert.c > +++ b/fs/ocfs2/dlm/dlmconvert.c > @@ -235,10 +235,10 @@ switch_queues: > list_move_tail(&lock->list, &res->converting); > > unlock_exit: > - spin_unlock(&lock->spinlock); > if (status == DLM_DENIED) { > __dlm_print_one_lock_resource(res); > } > + spin_unlock(&lock->spinlock); > if (status == DLM_NORMAL) > *kick_thread = 1; > return status; > -- > 1.6.6.1 > > > _______________________________________________ > Ocfs2-devel mailing list > Ocfs2-devel at oss.oracle.com > http://oss.oracle.com/mailman/listinfo/ocfs2-devel
Wengang Wang
2010-May-31 18:43 UTC
[Ocfs2-devel] [PATCH] ocfs2/dlm: print lockres under spin lock
print lockres under lockres->spinlock. Signed-off-by: Wengang Wang <wen.gang.wang at oracle.com> --- fs/ocfs2/dlm/dlmconvert.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/ocfs2/dlm/dlmconvert.c b/fs/ocfs2/dlm/dlmconvert.c index 9f30491..a0edf7e 100644 --- a/fs/ocfs2/dlm/dlmconvert.c +++ b/fs/ocfs2/dlm/dlmconvert.c @@ -235,10 +235,10 @@ switch_queues: list_move_tail(&lock->list, &res->converting); unlock_exit: - spin_unlock(&lock->spinlock); if (status == DLM_DENIED) { __dlm_print_one_lock_resource(res); } + spin_unlock(&lock->spinlock); if (status == DLM_NORMAL) *kick_thread = 1; return status; -- 1.6.6.1