ocfs2-devel.oss.oracle.com archive mirror
 help / color / mirror / Atom feed
From: Junxiao Bi <junxiao.bi@oracle.com>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] [PATCH] add OCFS2_LOCK_IGNORE_BLOCKED arg_flags to ocfs2_cluster_lock() to prevent hang
Date: Wed, 6 Jan 2016 12:47:40 +0800	[thread overview]
Message-ID: <568C9C6C.2030506@oracle.com> (raw)
In-Reply-To: <20160105234715.GP29804@ZenIV.linux.org.uk>

Hi Joel,

On 01/06/2016 07:47 AM, Joel Becker wrote:
> On Tue, Jan 05, 2016 at 09:46:49AM +0800, Junxiao Bi wrote:
>> Hi Mark,
>>
>> We may fix this issue in another way, without recursive locking and
>> without refactoring. We can check before asking for the second locking,
>> if lock is already hold, then skip the second locking, do you agree
>> fixing like this?
> 
> Hey Junxiao,
> 
> What is to prevent the second lock from being dropped while in the
> middle of the operation?
Log processes id into lockres when lock is got. When do second locking,
if this lock is already got by this process, then skip it.

Thanks,
Junxiao.

> 
> Joel
> 

      reply	other threads:[~2016-01-06  4:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-22 23:55 [Ocfs2-devel] [PATCH] add OCFS2_LOCK_IGNORE_BLOCKED arg_flags to ocfs2_cluster_lock() to prevent hang Tariq Saeed
2015-12-30  0:34 ` Mark Fasheh
2016-01-04 20:57   ` Tariq Saeed
2016-01-05  0:35     ` Mark Fasheh
2016-01-05  1:46       ` Junxiao Bi
2016-01-05 23:47         ` Joel Becker
2016-01-06  4:47           ` Junxiao Bi [this message]

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=568C9C6C.2030506@oracle.com \
    --to=junxiao.bi@oracle.com \
    --cc=ocfs2-devel@oss.oracle.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).