]> git.ipfire.org Git - people/ms/linux.git/commit - fs/nfs/flexfilelayout/flexfilelayout.c
pNFS/flexfiles: Fix list corruption if the mirror count changes
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 22 Jun 2020 19:04:15 +0000 (15:04 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Fri, 26 Jun 2020 12:43:14 +0000 (08:43 -0400)
commit8b04013737341442ed914b336cde866b902664ae
treefb3d56115d425196bd699a9e9516cde8ad956f3a
parent4659ed7cc8514369043053463514408ca16ad6f3
pNFS/flexfiles: Fix list corruption if the mirror count changes

If the mirror count changes in the new layout we pick up inside
ff_layout_pg_init_write(), then we can end up adding the
request to the wrong mirror and corrupting the mirror->pg_list.

Fixes: d600ad1f2bdb ("NFS41: pop some layoutget errors to application")
Cc: stable@vger.kernel.org
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/flexfilelayout/flexfilelayout.c