# Re: PROBLEM: double fault in md\_end\_io

- From: Guoqing Jiang \<hidden\>
- Date: 2021-05-08 01:17:51 
- List: linux-raid
- Page: https://ratatoskr.run/linux-raid/2021/05/6640189
- Thread: https://ratatoskr.run/linux-raid/2021/04/6640096/t.md

```text


On 5/7/21 7:46 AM, Guoqing Jiang wrote:
>
>
> On 5/6/21 1:48 PM, Song Liu wrote:
>> Hi Paweł,
>>
>> On Tue, May 4, 2021 at 2:18 PM Paweł Wiejacha
>> [ref] wrote:
>>> Guoqing's patch fixes the problem. Here's the actual patch I am using:
>> Thanks for running the tests.
>
> Thanks for the test, the better way could be just call bio_flagged(bio, BIO_CHAIN)
> then no need to export bi_chain_endio.

Err, BIO_CHAIN is set for parent bio, then we have to export bi_chain_endio if there
is no way to detect whether the bio was split from parent bio or not.

Thanks,
Guoqing
```
