linux-bcache.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: <wubenqing@ruijie.com.cn>
To: <linux-bcache@vger.kernel.org>
Subject: Is there a way to clear the dirty data corresponding to a damaged backend
Date: Wed, 10 Mar 2021 03:10:09 +0000	[thread overview]
Message-ID: <82A10A71B70FF2449A8AD233969A45A101CCDCA0CC@FZEX6.ruijie.com.cn> (raw)

Hi
Is there a way to clear the dirty data corresponding to a damaged backend?
I checked the code and found that only the dirty data that was successfully written back will be cleared of the dirty mark, but the backend has been damaged and it is no longer possible to write to the disk.
Consider a scenario where multiple backends use one SSD as a cache. If one of the backends is damaged, its dirty data cannot be cleared, which will reduce the available cache space.

                 reply	other threads:[~2021-03-10  3:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=82A10A71B70FF2449A8AD233969A45A101CCDCA0CC@FZEX6.ruijie.com.cn \
    --to=wubenqing@ruijie.com.cn \
    --cc=linux-bcache@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).