summaryrefslogtreecommitdiff
path: root/drivers/md/dm-verity.h
diff options
context:
space:
mode:
authorShaohua Li <shli@fb.com>2017-05-07 17:36:24 -0700
committerShaohua Li <shli@fb.com>2017-05-08 21:18:03 -0700
commit29efc390b9462582ae95eb9a0b8cd17ab956afc0 (patch)
tree2a8cbe3dc1dac31f3769cefc2963cc8bc677fe33 /drivers/md/dm-verity.h
parent2214c260c72b0bd94e6c1c19bf451686212025d3 (diff)
md/md0: optimize raid0 discard handling
There are complaints that raid0 discard handling is slow. Currently we divide discard request into chunks and dispatch to underlayer disks. The block layer will do merge to form big requests. This causes a lot of request split/merge and uses significant CPU time. A simple idea is to calculate the range for each raid disk for an IO request and send a discard request to raid disks, which will avoid the split/merge completely. Previously Coly tried the approach, but the implementation was too complex because of raid0 zones. This patch always split bio in zone boundary and handle bio within one zone. It simplifies the implementation a lot. Reviewed-by: NeilBrown <neilb@suse.com> Acked-by: Coly Li <colyli@suse.de> Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'drivers/md/dm-verity.h')
0 files changed, 0 insertions, 0 deletions