summaryrefslogtreecommitdiffstats
path: root/drivers/md/raid5-ppl.c
diff options
context:
space:
mode:
authorNeilBrown2017-04-05 06:05:51 +0200
committerShaohua Li2017-04-11 19:17:55 +0200
commit868f604b1de2ddbdcf194d7792a0d91d7da719c1 (patch)
tree24e4e2bee699aa4195a469cbb109327976c68173 /drivers/md/raid5-ppl.c
parentmd/raid5: make chunk_aligned_read() split bios more cleanly. (diff)
downloadkernel-qcow2-linux-868f604b1de2ddbdcf194d7792a0d91d7da719c1.tar.gz
kernel-qcow2-linux-868f604b1de2ddbdcf194d7792a0d91d7da719c1.tar.xz
kernel-qcow2-linux-868f604b1de2ddbdcf194d7792a0d91d7da719c1.zip
md/linear: improve bio splitting.
linear_make_request() uses fs_bio_set, which is meant for filesystems to use, and loops, possible allocating from the same bio set multiple times. These behaviors can theoretically cause deadlocks, though as linear requests are hardly ever split, it is unlikely in practice. Change to use mddev->bio_set - otherwise unused for linear, and submit the tail of a split request to generic_make_request() for it to handle. Signed-off-by: NeilBrown <neilb@suse.com> Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'drivers/md/raid5-ppl.c')
0 files changed, 0 insertions, 0 deletions