From: Lars Ellenberg <lars.ellenberg@linbit.com>
To: drbd-dev@lists.linbit.com
Subject: Re: [Drbd-dev] [DRBD-8.0 PATCH] Fix deadlock between transfer log and resync
Date: Mon, 14 Jan 2008 10:07:48 +0100 [thread overview]
Message-ID: <20080114090748.GI5715@barkeeper1.linbit> (raw)
In-Reply-To: <342BAC0A5467384983B586A6B0B3767107C5AF6A@EXNA.corp.stratus.com>
On Fri, Jan 11, 2008 at 10:29:57AM -0500, Graham, Simon wrote:
> The attached patches fix some deadlocks between the transfer log and
> resync - when the TL is in use (previously only protocols A and B but
> now all protocols), if there is a request on the TL that conflicts with
> a resync region, the code would deadlock with the resync processing
> waiting for the AL area to be clean and new requests that might lead to
> a barrier that would clear out the TL blocked by the resync.
>
> The attached patches include the following:
>
> 1. Non-TCQ DRBD Barrier implementation on target now flushes
> disk to force cached data to disk.
this is correct, we should do that.
> 2. A deadlock between resync and requests sitting in the TL
> is fixed - if a resync request is started that conflicts
> with entries in the TL, a DRBD barrier is initiated - this
> will clear up the TL when the barrier ack is received and
> allow the resync to procede.
> 3. When changing role from Primary, it is necessary to clear out
> transfer log - do this by initiating barrier
> 4. When SyncTarget is also Primary, it is possible for
> drbd_try_rs_begin_io
> to never make progress due to entries in tl that will not be flushed.
> Change code to initiate barrier IF conflict with AL is found.
these will be handled differently and more generically,
as recently discussed in the "Crash in lru_cache.c" thread.
--
: Lars Ellenberg Tel +43-1-8178292-55 :
: LINBIT Information Technologies GmbH Fax +43-1-8178292-82 :
: Vivenotgasse 48, A-1120 Vienna/Europe http://www.linbit.com :
prev parent reply other threads:[~2008-01-14 9:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-11 15:29 [Drbd-dev] [DRBD-8.0 PATCH] Fix deadlock between transfer log and resync Graham, Simon
2008-01-14 9:07 ` Lars Ellenberg [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=20080114090748.GI5715@barkeeper1.linbit \
--to=lars.ellenberg@linbit.com \
--cc=drbd-dev@lists.linbit.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