From: Steven Whitehouse <swhiteho@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [PATCH] unlock page lock before doing a dq
Date: Sat, 08 Sep 2007 16:04:40 +0100 [thread overview]
Message-ID: <1189263880.1068.30.camel@quoit> (raw)
In-Reply-To: <20070908142528.GB31007@dhcp-243-37.rdu.redhat.com>
Hi,
The bug has been verified not to exist on the latest kernel, so I don't
think we need this patch,
Steve.
On Sat, 2007-09-08 at 10:25 -0400, Josef Bacik wrote:
> Hello,
>
> There is a lockup condition where we get an error while perparing to write (such
> as ENOSPC) and we go to do the gfs2_glock_dq_m and the glock has been marked
> dirty. Since we are already holding the page lock, we will deadlock because we
> will try to flush all the pages back to disk and try to take the pagelock again.
> Wendy you said I would be doing this in a transaction, but if there as error
> inside where we started the transaction, we goto out, where we stop the
> transaction first and then go on and unlock the page. This fixes RH bz 280791.
> Thank you,
>
> Josef
>
> --- 18.34/fs/gfs2/ops_address.c.josef 2007-09-07 15:07:03.000000000 -0400
> +++ 18.34/fs/gfs2/ops_address.c 2007-09-07 15:12:45.000000000 -0400
> @@ -457,8 +457,10 @@ out_alloc_put:
> gfs2_alloc_put(ip);
> }
> out_unlock:
> + unlock_page(page);
> gfs2_glock_dq_m(1, &ip->i_gh);
> gfs2_holder_uninit(&ip->i_gh);
> + lock_page(page);
> }
>
> return error;
>
prev parent reply other threads:[~2007-09-08 15:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-08 14:25 [Cluster-devel] [PATCH] unlock page lock before doing a dq Josef Bacik
2007-09-08 15:04 ` Steven Whitehouse [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=1189263880.1068.30.camel@quoit \
--to=swhiteho@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.