md: add md_submit_discard_bio() for submitting discard bio
authorXiao Ni <xni@redhat.com>
Thu, 4 Feb 2021 07:50:43 +0000 (15:50 +0800)
committerSong Liu <songliubraving@fb.com>
Wed, 24 Mar 2021 23:29:06 +0000 (16:29 -0700)
commitcf78408f937a67f59f5e90ee8e6cadeed7c128a8
treee6c6fccc278c744c2f0763ff073088e7ebda7daa
parent14d97622448acbea0348be62f62e25d9a361e16b
md: add md_submit_discard_bio() for submitting discard bio

Move these logic from raid0.c to md.c, so that we can also use it in
raid10.c.

Reviewed-by: Coly Li <colyli@suse.de>
Reviewed-by: Guoqing Jiang <guoqing.jiang@cloud.ionos.com>
Tested-by: Adrian Huang <ahuang12@lenovo.com>
Signed-off-by: Xiao Ni <xni@redhat.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
drivers/md/md.c
drivers/md/md.h
drivers/md/raid0.c