pnfs: fix bad error handling in send_layoutget
authorJeff Layton <jlayton@poochiereds.net>
Tue, 17 May 2016 16:28:45 +0000 (12:28 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 17 May 2016 19:48:11 +0000 (15:48 -0400)
commitd03ab29dbbe905c6c7c5abd78e02547fa954ec07
tree290ac16ad003538b28b47514c0e29b9e49fd559d
parent95e2b7e95d43c5c95620b12355a90713268376d3
pnfs: fix bad error handling in send_layoutget

Currently, the code will clear the fail bit if we get back a fatal
error. I don't think that's correct -- we want to clear that bit
if we do not get a fatal error.

Fixes: 0bcbf039f6 (nfs: handle request add failure properly)
Signed-off-by: Jeff Layton <jeff.layton@primarydata.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/pnfs.c