]> git.baikalelectronics.ru Git - kernel.git/commit
pNFS/flexfiles: Fix array overflow when flexfiles mirroring is enabled
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 15 Nov 2020 22:37:37 +0000 (17:37 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 30 Nov 2020 15:52:22 +0000 (10:52 -0500)
commit208ed4f92a65bba46013024d85457e5c1c9dd08d
treec63da5c4966c08dcfa790cd401bcbc83cf1ee143
parenta51c3bc642cfce7cf306e250ca463c4e3ba95909
pNFS/flexfiles: Fix array overflow when flexfiles mirroring is enabled

If the flexfiles mirroring is enabled, then the read code expects to be
able to set pgio->pg_mirror_idx to point to the data server that is
being used for this particular read. However it does not change the
pg_mirror_count because we only need to send a single read.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/flexfilelayout/flexfilelayout.c
fs/nfs/pagelist.c
include/linux/nfs_page.h