[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v5 0/9] block: Add retry for werror=/rerror= mechanism
From: |
Jiahui Cen |
Subject: |
Re: [PATCH v5 0/9] block: Add retry for werror=/rerror= mechanism |
Date: |
Tue, 23 Feb 2021 18:20:08 +0800 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 |
Hi Stefan,
On 2021/2/23 17:40, Stefan Hajnoczi wrote:
> On Fri, Feb 05, 2021 at 06:13:06PM +0800, Jiahui Cen wrote:
>> This patch series propose to extend the werror=/rerror= mechanism to add
>> a 'retry' feature. It can automatically retry failed I/O requests on error
>> without sending error back to guest, and guest can get back running smoothly
>> when I/O is recovred.
>
> This patch series implements a retry followed by werror/rerror=report
> after a timeout. This mechanism could be made more generic (and the code
> could be simplified) by removing the new werror/rerror=retry action and
> instead implementing the retry/timeout followed by *any* werror=/rerror=
> policy chosen by the user.
>
> In other words, if the retry interval is non-zero, retry the request and
> check for timeouts. When the timeout is reached, obey the
> werror=/rerror= action.
>
> This is more flexible than hard-coding werror=retry to mean retry
> timeout followed by werror=report.
>
> For example:
>
> werror=stop,write-retry-interval=1000,write-retry-timeout=15000,
> rerror=report,read-retry-interval=1000,read-retry-timeout=15000
>
> Failed write requests will be retried once a second for 15 seconds.
> If the timeout is reached the guest is stopped.
>
> Failed read requests will be retried once a second for 15 seconds. If
> the timeout is reached the error is reported to the guest.
Sounds like a better way for me. I'll refactor this patch series under
your suggestion.
Also thanks for your review.
Thanks,
Jiahui
- [PATCH v5 5/9] block-backend: Add timeout support for retry, (continued)
- [PATCH v5 5/9] block-backend: Add timeout support for retry, Jiahui Cen, 2021/02/05
- [PATCH v5 9/9] scsi-disk: Add support for retry on errors, Jiahui Cen, 2021/02/05
- [PATCH v5 4/9] block-backend: Enable retry action on errors, Jiahui Cen, 2021/02/05
- [PATCH v5 3/9] block-backend: Add device specific retry callback, Jiahui Cen, 2021/02/05
- Re: [PATCH v5 0/9] block: Add retry for werror=/rerror= mechanism, Jiahui Cen, 2021/02/09
- Re: [PATCH v5 0/9] block: Add retry for werror=/rerror= mechanism, Stefan Hajnoczi, 2021/02/22
- Re: [PATCH v5 0/9] block: Add retry for werror=/rerror= mechanism, Stefan Hajnoczi, 2021/02/23