All of lore.kernel.org
 help / color / mirror / Atom feed
From: Loic Dachary <loic@dachary.org>
To: Samuel Just <sam.just@inktank.com>
Cc: Ceph Development <ceph-devel@vger.kernel.org>
Subject: Re: review request : ReplicatedPG::AccessMode::wake removal
Date: Wed, 14 Aug 2013 19:30:23 +0200	[thread overview]
Message-ID: <520BBEAF.7080402@dachary.org> (raw)
In-Reply-To: <520B5939.9050503@dachary.org>

[-- Attachment #1: Type: text/plain, Size: 1373 bytes --]

I removed the code in a minimal way instead of removing the data member itself, as you suggested.

https://github.com/dachary/ceph/commit/2f73eea0b8d7d4633d5887ba725d258ce81f8ac0

On 14/08/2013 12:17, Loic Dachary wrote:
> Hi Sam,
> 
> IIRC, a few weeks ago you told me that 
> 
> https://github.com/ceph/ceph/blob/962b64a83037ff79855c5261325de0cd1541f582/src/osd/ReplicatedPG.cc#L4626
> 
>   if (mode.wake) {
>     requeue_ops(mode.waiting);
>     for (list<Cond*>::iterator p = mode.waiting_cond.begin(); p != mode.waiting_cond.end(); ++p)
>       (*p)->Signal();
>     mode.wake = false;
>   } 
> 
> was not used and could be discarded. In the context of https://github.com/ceph/ceph/pull/414 I originally kept calling it wherever put_object_context() was called, just to make sure no opportunity to signal the waiters was missed. 
> 
> Since that could lead to very subtle bugs if I misunderstood what you meant, I would very much appreciate a review of this specific commit. 
> 
> https://github.com/dachary/ceph/commit/014997d55aa8d614fe38a1f86faa246d3c13e21b
> 
> I've not hit anything suspicious yet while running teuthology. But that's really the only part of this patch series that worries me.
> 
> Cheers
> 

-- 
Loïc Dachary, Artisan Logiciel Libre
All that is necessary for the triumph of evil is that good people do nothing.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 261 bytes --]

      reply	other threads:[~2013-08-14 17:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-14 10:17 review request : ReplicatedPG::AccessMode::wake removal Loic Dachary
2013-08-14 17:30 ` Loic Dachary [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=520BBEAF.7080402@dachary.org \
    --to=loic@dachary.org \
    --cc=ceph-devel@vger.kernel.org \
    --cc=sam.just@inktank.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.