From: Paolo Bonzini <pbonzini@redhat.com>
To: Kevin Wolf <kwolf@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 4/6] blkdebug: store list of active rules
Date: Tue, 03 Jul 2012 18:03:19 +0200 [thread overview]
Message-ID: <4FF317C7.7060109@redhat.com> (raw)
In-Reply-To: <4FF31286.50000@redhat.com>
Il 03/07/2012 17:40, Kevin Wolf ha scritto:
>> > case ACTION_INJECT_ERROR:
>> > - vars->inject_errno = rule->options.inject.error;
>> > - vars->inject_once = rule->options.inject.once;
>> > - vars->inject_immediately = rule->options.inject.immediately;
>> > + if (!injected) {
>> > + QSIMPLEQ_INIT(&s->active_rules);
>> > + injected = true;
>> > + }
> Does this mean that the next event will invalidate the active rules?
> Currently it only does so if a rule for the new event exists.
No, the point of having the injected bool is exactly to keep the
currently active rules unless a rule exists for the new event. We
cannot just do the QSIMPLEQ_INIT in blkdebug_debug_event, that would be
the behavior you describe.
Paolo
next prev parent reply other threads:[~2012-07-03 16:03 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-06 6:10 [Qemu-devel] [PATCH 0/6] blkdebug changes extracted from 1.2 streaming patches Paolo Bonzini
2012-06-06 6:10 ` [Qemu-devel] [PATCH 1/6] blkdebug: remove sync i/o events Paolo Bonzini
2012-06-07 15:08 ` Stefan Hajnoczi
2012-06-06 6:10 ` [Qemu-devel] [PATCH 2/6] blkdebug: tiny cleanup Paolo Bonzini
2012-06-06 6:10 ` [Qemu-devel] [PATCH 3/6] blkdebug: pass getlength to underlying file Paolo Bonzini
2012-06-06 6:10 ` [Qemu-devel] [PATCH 4/6] blkdebug: store list of active rules Paolo Bonzini
2012-07-03 15:40 ` Kevin Wolf
2012-07-03 16:03 ` Paolo Bonzini [this message]
2012-07-04 6:39 ` Kevin Wolf
2012-06-06 6:10 ` [Qemu-devel] [PATCH 5/6] blkdebug: optionally tie errors to a specific sector Paolo Bonzini
2012-06-07 15:10 ` Stefan Hajnoczi
2012-06-06 6:10 ` [Qemu-devel] [PATCH 6/6] raw: hook into blkdebug Paolo Bonzini
2012-07-03 14:50 ` [Qemu-devel] [PATCH 0/6] blkdebug changes extracted from 1.2 streaming patches Paolo Bonzini
2012-07-04 9:37 ` Kevin Wolf
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=4FF317C7.7060109@redhat.com \
--to=pbonzini@redhat.com \
--cc=kwolf@redhat.com \
--cc=qemu-devel@nongnu.org \
/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.