]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 09:35:44 +0000 (11:35 +0200)
commit957ad8959a361bcbc8e7cbf09cd12db629869c51
tree57ce909ddafa048d57585db7852fb70dc09ad2d8
parentf252d7d397a72ccfd3eddc81286fc899ace9e819
md: update the optimal I/O size on reshape

[ Upstream commit 5ba3722f11a8083de569a7e624feb78561e3ae76 ]

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>
Stable-dep-of: f0ddb83da3cb ("md/raid10: fix memleak of md thread")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/md/raid10.c
drivers/md/raid5.c