]> git.baikalelectronics.ru Git - kernel.git/commit
PNFS fix EACCESS on commit to DS handling
authorOlga Kornievskaia <kolga@netapp.com>
Fri, 23 Jun 2017 14:26:58 +0000 (10:26 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Thu, 13 Jul 2017 19:59:57 +0000 (15:59 -0400)
commit92b2ef2784ed9b82faedb21dfe0641c916e1208b
treedc1cf3bd20e26f401c796b9dca8d78104ee25090
parentd92c0a73a96d946c202d4cd2f27f1c3234406146
PNFS fix EACCESS on commit to DS handling

Commit ab2549b21b14 "PNFS fix fallback to MDS if got error on
commit to DS" moved the pnfs_set_lo_fail() to unhandled errors
which was not correct and lead to a kernel oops on umount.

Instead, fix the original EACCESS on commit to DS error by
getting the new layout and re-doing the IO.

Fixes: ab2549b21b14 ("PNFS fix fallback to MDS if got error on commit to DS")
Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Cc: stable@vger.kernel.org # v4.12
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/filelayout/filelayout.c