From: Wendy Cheng <wcheng@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [GFS2 PATCH] Handle multiple glock demote requests
Date: Thu, 04 Oct 2007 17:48:53 -0400 [thread overview]
Message-ID: <47055FC5.9040706@redhat.com> (raw)
In-Reply-To: <20071004213445.GA23201@dhcp243-37.rdu.redhat.com>
Josef Bacik wrote:
>> set_bit(GLF_LOCK, &gl->gl_flags);
>> + set_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags);
>> if (gl->gl_demote_state == LM_ST_UNLOCKED ||
>> gl->gl_state != LM_ST_EXCLUSIVE) {
>> spin_unlock(&gl->gl_spin);
>> @@ -575,6 +576,8 @@ static int rq_demote(struct gfs2_glock *
>> spin_unlock(&gl->gl_spin);
>> gfs2_glock_xmote_th(gl, NULL);
>> }
>> +
>> + clear_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags);
>> spin_lock(&gl->gl_spin);
>>
>>
>
> May want to move the clear_bit inside the spin_lock so you don't end up having
> the same race where we clear the bit while inside handle_callback.
>
>
Yep... good point .... Will make changes .. Wendy
next prev parent reply other threads:[~2007-10-04 21:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-04 18:04 [Cluster-devel] [GFS2 PATCH] Handle multiple glock demote requests Wendy Cheng
2007-10-04 21:34 ` Josef Bacik
2007-10-04 21:48 ` Wendy Cheng [this message]
2007-10-05 4:27 ` Wendy Cheng
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=47055FC5.9040706@redhat.com \
--to=wcheng@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.