summaryrefslogtreecommitdiffstats
path: root/drivers/md/raid10.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman2018-09-16 22:04:13 +0200
committerGreg Kroah-Hartman2018-09-16 22:04:13 +0200
commit7dc074348eb85d48f7a1fa96879458f4becf68a7 (patch)
treeaf626c941574ea68f7d74da04d81e302fbc14a68 /drivers/md/raid10.c
parentMAINTAINERS: remove myself as staging FBTFT maintainer (diff)
parentLinux 4.19-rc4 (diff)
downloadkernel-qcow2-linux-7dc074348eb85d48f7a1fa96879458f4becf68a7.tar.gz
kernel-qcow2-linux-7dc074348eb85d48f7a1fa96879458f4becf68a7.tar.xz
kernel-qcow2-linux-7dc074348eb85d48f7a1fa96879458f4becf68a7.zip
Merge 4.19-rc4 into staging-next
Handle the merge issues and take the iio and staging driver fixes. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/md/raid10.c')
-rw-r--r--drivers/md/raid10.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c
index 981898049491..d6f7978b4449 100644
--- a/drivers/md/raid10.c
+++ b/drivers/md/raid10.c
@@ -4529,11 +4529,12 @@ static sector_t reshape_request(struct mddev *mddev, sector_t sector_nr,
allow_barrier(conf);
}
+ raise_barrier(conf, 0);
read_more:
/* Now schedule reads for blocks from sector_nr to last */
r10_bio = raid10_alloc_init_r10buf(conf);
r10_bio->state = 0;
- raise_barrier(conf, sectors_done != 0);
+ raise_barrier(conf, 1);
atomic_set(&r10_bio->remaining, 0);
r10_bio->mddev = mddev;
r10_bio->sector = sector_nr;
@@ -4629,6 +4630,8 @@ read_more:
if (sector_nr <= last)
goto read_more;
+ lower_barrier(conf);
+
/* Now that we have done the whole section we can
* update reshape_progress
*/