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:24:30 +0000 (07:24 +0100)
commit16e7fb3cc305272a26d2af19a72767f67fca5d7f
treee8f48dd7e3cc404e67d32e0c128ff675d97e3931
parent77043645aa6c5f8b388c2d99b5f3164307acf448
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