All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zheng Liu <gnehzuil.liu@gmail.com>
To: Pavel Goran <via-bcache@pvgoran.name>
Cc: linux-bcache@vger.kernel.org
Subject: Re: How to invalidate all cache
Date: Mon, 13 Oct 2014 21:30:58 +0800	[thread overview]
Message-ID: <20141013133058.GA19065@gmail.com> (raw)
In-Reply-To: <178936476.20141013104314@pvgoran.name>

On Mon, Oct 13, 2014 at 10:43:14AM +0700, Pavel Goran wrote:
> Hello Zheng,
> 
> Monday, October 13, 2014, 10:45:37 AM, you wrote:
> 
> > Yes, detaching a backing device will make all dirty data to be written
> > back to the backing device.  But if I understand correctly it couldn't
> > invalidate all data in cache device.  That means that after attaching
> > backing device the data in cache device is still valid.
> 
> It  would  be  a  bug if cached data were considered valid after detaching and
> re-attaching. Because while a cache device an a backing device were separated,
> data  could be written to a backing device, this would possibly make data in a
> "disconnected" cache obsolete.

Ah, Thanks for pointing it out.  I got it.

BTW, there is a bug when I tried to detach/attach a backing device.
A patch has sent out to the mailing list.  That would be great if some
one can review it.

Regards,
                                                - Zheng

  reply	other threads:[~2014-10-13 13:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-13  3:03 How to invalidate all cache Zheng Liu
2014-10-13  3:16 ` Slava Pestov
2014-10-13  3:45   ` Zheng Liu
2014-10-13  3:43     ` Re[2]: " Pavel Goran
2014-10-13 13:30       ` Zheng Liu [this message]
2014-10-13 18:13         ` (unknown) Eric Wheeler

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=20141013133058.GA19065@gmail.com \
    --to=gnehzuil.liu@gmail.com \
    --cc=linux-bcache@vger.kernel.org \
    --cc=via-bcache@pvgoran.name \
    /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.