]> git.baikalelectronics.ru Git - kernel.git/commit
pNFS/filelayout: Fix coalescing test for single DS
authorOlga Kornievskaia <olga.kornievskaia@gmail.com>
Tue, 20 Dec 2022 17:31:29 +0000 (12:31 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Jan 2023 06:17:58 +0000 (07:17 +0100)
commitc34a8ecc5f1e9627e28a70b139a505e1ba0d89f5
treee7f5d8e231eafc0810498cd226ff64c51b30b705
parent7ec6b262ef47f0044b4d74ede23ec102c8f01de0
pNFS/filelayout: Fix coalescing test for single DS

[ Upstream commit a6b9d2fa0024e7e399c26facd0fb466b7396e2b9 ]

When there is a single DS no striping constraints need to be placed on
the IO. When such constraint is applied then buffered reads don't
coalesce to the DS's rsize.

Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/filelayout/filelayout.c