NFSv4.1: nfs4_fl_prepare_ds - fix bugs when the connect attempt fails
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 26 Sep 2013 18:08:36 +0000 (14:08 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sun, 29 Sep 2013 19:56:35 +0000 (15:56 -0400)
commit52b26a3e1bb3e065c32b3febdac1e1f117d88e15
treebcad0ee4bfb02acd387c4ef7f10ffdb1b69d52fc
parent5bc2afc2b53fc73f154e6344cd898585628e6d27
NFSv4.1: nfs4_fl_prepare_ds - fix bugs when the connect attempt fails

- Fix an Oops when nfs4_ds_connect() returns an error.
- Always check the device status after waiting for a connect to complete.

Reported-by: Andy Adamson <andros@netapp.com>
Reported-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: <stable@vger.kernel.org> # v3.10+
fs/nfs/nfs4filelayoutdev.c