md/raid0: fix up bio splitting.
authorNeilBrown <neilb@suse.com>
Wed, 5 Apr 2017 04:05:51 +0000 (14:05 +1000)
committerShaohua Li <shli@fb.com>
Tue, 11 Apr 2017 17:18:09 +0000 (10:18 -0700)
commitf00d7c85be9e39752ef87047a019dfc4cefbd299
tree6b744e16bb6bde65a3d4157969d36dca0cb80520
parent868f604b1de2ddbdcf194d7792a0d91d7da719c1
md/raid0: fix up bio splitting.

raid0_make_request() should use a private bio_set rather than the
shared fs_bio_set, which is only meant for filesystems to use.

raid0_make_request() shouldn't loop around using the bio_set
multiple times as that can deadlock.

So use mddev->bio_set and pass the tail to generic_make_request()
instead of looping on it.

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/raid0.c