From: Lars Ellenberg <lars.ellenberg@linbit.com>
To: drbd-dev@lists.linbit.com
Subject: Re: [Drbd-dev] [PATCH] Proposed fix to 8.0.x to ALWAYS schedule afterstate processing
Date: Mon, 10 Dec 2007 17:56:19 +0900 [thread overview]
Message-ID: <20071210085619.GB5055@racke.local> (raw)
In-Reply-To: <342BAC0A5467384983B586A6B0B376710761317C@EXNA.corp.stratus.com>
On Sun, Dec 09, 2007 at 09:05:10PM -0500, Graham, Simon wrote:
> > As you may recall, I ran into a problem recently with some state
> > changes
> > being delivered via netlink out of order because some state changes do
> > not get their after-state-change processing deferred to the worker
> > thread - this is a big problem if you have code trying to track the
> > state changes via the netlink mechanism. The suggested solution was to
> > make the change to schedule ALL after state change processing to the
> > worker thread and the attached patch does this, including the
> > following:
>
> We have found one issue with this patch -- we are now seeing occasional
> messages:
>
> BUG! md_sync_timer expired! Worker calls drbd_md_sync()
the "BUG!" already got remove out of that message, it is no bug,
but only some sloppy timing of certain things on our part.
> I _think_ this is because the meta data can be marked dirty in the after
> state change processing and we now have some situations where this
> happens after the code runs that writes the meta data -- I'm not sure
> how terrible it is, but I think we should move the code that marks the
> meta data dirty into _drbd_set_state() so it happens inline -- I don't
> see any reason why it has to be done in the worker thread... what do you
> think?
my design proposal was to set the meta-data dirty flag _implicitly_,
once something is changed that should be recorded on disk. this
"dirtying" would also schedule the timer to alert us of code pathes that
take too long to actually get these changes on disk. unfortunately we
never got around to implementing the "implicit" part of it.
yes, this "dirtying" should happen as early as possible.
--
: 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 :
next prev parent reply other threads:[~2007-12-10 8:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-10 2:05 [Drbd-dev] [PATCH] Proposed fix to 8.0.x to ALWAYS schedule afterstate processing Graham, Simon
2007-12-10 8:56 ` Lars Ellenberg [this message]
2007-12-11 22:35 ` [Drbd-dev] [PATCH] Proposed fix to 8.0.x to ALWAYS scheduleafterstate processing Graham, Simon
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=20071210085619.GB5055@racke.local \
--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