OSDN Git Service

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)
commit63e2fffa59a9dd91e443b08832656399fd80b7f0
treec63da5c4966c08dcfa790cd401bcbc83cf1ee143
parentb65054597872ce3aefbc6a666385eabdf9e288da
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