md: update the optimal I/O size on reshape
authorChristoph Hellwig <hch@lst.de>
Thu, 24 Sep 2020 06:51:33 +0000 (08:51 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 24 Sep 2020 19:43:39 +0000 (13:43 -0600)
commit16ef510139315a2147ee7525796f8dbd4e4b7864
treefb7a247ab98244ef62a49a3349324951f3222c3c
parent55b2598e84e97efc5d952958cb5e34236c43276b
md: update the optimal I/O size on reshape

The raid5 and raid10 drivers currently update the read-ahead size,
but not the optimal I/O size on reshape.  To prepare for deriving the
read-ahead size from the optimal I/O size make sure it is updated
as well.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Acked-by: Song Liu <song@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/raid10.c
drivers/md/raid5.c