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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Oct 2013 23:08:33 +0000 (16:08 -0700)
commit28f7ae257183e8064119db486190d2229caae369
tree28ee8b02f1a6846054d5ede384ee7d5a3ceb68e5
parent96baebd41aab7e82b6d6083d8f31c482dd5a576e
NFSv4.1: nfs4_fl_prepare_ds - fix bugs when the connect attempt fails

commit 52b26a3e1bb3e065c32b3febdac1e1f117d88e15 upstream.

- 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/nfs4filelayoutdev.c