Bug 1816493

Summary: [RHEL 8.3] Discard request from mkfs.xfs takes too much time on raid10
Product: Red Hat Enterprise Linux 8 Reporter: XiaoNi <xni>
Component: kernelAssignee: XiaoNi <xni>
kernel sub component: Multiple Devices (MD) QA Contact: Fine Fan <ffan>
Status: CLOSED ERRATA Docs Contact:
Severity: unspecified    
Priority: high CC: brdeoliv, cwei, ffan, fhrbata, jbrassow, jmagrini, jpittman, loberman, minlei, ncroxon, nyewale, rgirase, xni
Version: 8.3Keywords: TestOnly, Triaged, ZStream
Target Milestone: rc   
Target Release: 8.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: kernel-4.18.0-314.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: Red Hat2020418 (view as bug list) Environment:
Last Closed: 2021-11-09 18:57:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: Red Hat1956355    
Bug Blocks: Red Hat2020418    

Comment 10 Nigel Croxon 2020-10-01 12:52:22 UTC
In Song's md-next branch


commit d3ee2d8415a6256c1c41e1be36e80e640c3e6359
Author: Xiao Ni <xni>
Date:   Wed Sep 2 20:00:23 2020 +0800
md/raid10: improve discard request for far layout
    

commit bcc90d280465ebd51ab8688be86e1f00c62dccf9
Author: Xiao Ni <xni>
Date:   Wed Sep 2 20:00:22 2020 +0800
md/raid10: improve raid10 discard request

Comment 12 XiaoNi 2020-12-17 08:16:01 UTC
Hi all

The patch set which can fix this problem has data corruption problem. I'm looking at this problem.
And I'll send the patch again to upstream once the problem is fixed.

You can check the detail about the data corruption problem at https://www.spinics.net/lists/kernel/msg3765302.html

Thanks
Xiao

Comment 13 XiaoNi 2020-12-24 10:39:40 UTC
The root cause has been found. https://marc.info/?l=linux-raid&m=160880530629526&w=2

Comment 20 Nigel Croxon 2021-05-11 16:49:09 UTC
#16 patch set submitted into RHEL-8.5.0
MR: https://gitlab.com/redhat/rhel/src/kernel/rhel-8/-/merge_requests/554

Comment 32 Nitin Yewale 2021-05-27 14:15:32 UTC
Customer has informed that it will take one or two weeks for them to test the kernel.

Comment 38 Jonathan Earl Brassow 2021-06-23 14:28:01 UTC
this bug has been fixed by patches for Red Hatbug 1956355 and is now a TestOnly bug.

Comment 47 errata-xmlrpc 2021-11-09 18:57:12 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: kernel security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:4356