From: Nix <nix@esperi.org.uk>
To: Coly Li <colyli@suse.de>
Cc: Zhang Zhen <zhangzhen.email@gmail.com>,
linux-bcache@vger.kernel.org, jianchao.wan9@gmail.com
Subject: Re: bcache detach lead to xfs force shutdown
Date: Thu, 03 Mar 2022 17:42:51 +0000 [thread overview]
Message-ID: <87sfrzdjac.fsf@esperi.org.uk> (raw)
In-Reply-To: <6cab50d8-8771-8b6f-cd09-d318fc3986d3@suse.de> (Coly Li's message of "Wed, 2 Mar 2022 17:19:11 +0800")
On 2 Mar 2022, Coly Li verbalised:
> On 2/23/22 8:26 PM, Zhang Zhen wrote:
>> The reproduce opreation as follows:
>> 1. mount a bcache disk with xfs
>>
>> /dev/bcache1 on /media/disk1 type xfs
>>
>> 2. run ls in background
>> #!/bin/bash
>>
>> while true
>> do
>> echo 2 > /proc/sys/vm/drop_caches
>> ls -R /media/disk1 > /dev/null
>> done
>>
>>
>> 3. remove cache disk sdc
>> echo 1 >/sys/block/sdc/device/delete
>>
>> 4. dmesg should get xfs error
>>
>> I write a patch to improve,please help to review it, thanks.
>
> Hold on. Why do you think it should be fixed? As I said, it is as-designed behavior.
I was thinking exactly as you were... but, y'know, this might be a
genuine resiliency improvement, *if* done only when the cache is
writearound (or none, I suppose!). Obviously if writes are being cached
a cache device failure must trigger I/O failures visible to userspace...
but if it's just speeding up the underlying device, having it fail would
ideally just fail it out and cause all I/Os to proceed uncached,
including the one that was underway when the cache I/O error was
encountered.
--
NULL && (void)
next prev parent reply other threads:[~2022-03-03 18:25 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-21 9:33 bcache detach lead to xfs force shutdown Zhang Zhen
2022-02-23 9:03 ` Coly Li
2022-02-23 12:26 ` Zhang Zhen
2022-03-02 9:19 ` Coly Li
2022-03-03 17:42 ` Nix [this message]
2022-03-04 8:22 ` Zhang Zhen
2022-03-04 8:42 ` Coly Li
2022-03-07 7:56 ` zhangzhen.email
2022-03-07 8:21 ` Coly Li
2022-03-07 9:06 ` zhangzhen.email
2022-03-07 9:16 ` [PATCH] Bcache: don't return BLK_STS_IOERR during cache detach Zhen Zhang
2022-03-09 13:14 ` bcache detach lead to xfs force shutdown Coly Li
2022-03-10 2:01 ` Zhang Zhen
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=87sfrzdjac.fsf@esperi.org.uk \
--to=nix@esperi.org.uk \
--cc=colyli@suse.de \
--cc=jianchao.wan9@gmail.com \
--cc=linux-bcache@vger.kernel.org \
--cc=zhangzhen.email@gmail.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