Distributed Replicated Block Device (DRBD) development
 help / color / mirror / Atom feed
From: Lars Ellenberg <lars.ellenberg@linbit.com>
To: drbd-dev@lists.linbit.com
Subject: Re: [Drbd-dev] Crash in lru_cache.c
Date: Sun, 13 Jan 2008 04:14:59 +0100	[thread overview]
Message-ID: <20080113031459.GA30312@debian-etc-mailname> (raw)
In-Reply-To: <342BAC0A5467384983B586A6B0B3767107C5B0C0@EXNA.corp.stratus.com>

On Sat, Jan 12, 2008 at 06:37:47PM -0500, Graham, Simon wrote:
> > sure I can have requests there, but they are not yet completed to
> upper
> > layers.  if they are, their correponding barrier will have been send
> > out
> > already.
> > 
> > for attach, we would then do
> >   block new incomming request
> >   wait for ap count to reach zero
> >   [in current code, send out a barrier now;
> >    with the idea outline above, there is no need for that]
> >   wait for the lates barrier ack
> >       (tl now empty)
> >   attach
> >   unblock
> > 
> > am I still missing something?
> 
> I think that works. 
> 
> What's the appropriate mechanism for blocking new requests? There are
> existing mechanisms based on locking the AL cache entry, but since there
> is no AL at this time, we cant use that...

there is an other one, examining the drbd state,
right as the first statement in

	drbd_make_request_common
	  inc_ap_bio
	    __inc_ap_bio_cond

 :-)

I have to think about whether we need yet an other itermediate state.
probably blocking anything for Diskless < state < Inconsistent
would be enough.

-- 
: 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 :

      reply	other threads:[~2008-01-13  3:15 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-10 19:00 [Drbd-dev] Crash in lru_cache.c Graham, Simon
2008-01-10 20:19 ` Lars Ellenberg
2008-01-10 20:31 ` Graham, Simon
2008-01-12 13:51   ` Lars Ellenberg
     [not found] ` <342BAC0A5467384983B586A6B0B3767107C5AE95@EXNA.corp.s tratus.com>
2008-01-12 15:23   ` Graham, Simon
2008-01-12 17:04     ` Lars Ellenberg
2008-01-12 23:37     ` Graham, Simon
2008-01-13  3:14       ` 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=20080113031459.GA30312@debian-etc-mailname \
    --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