/* Map errors cl_cons_state errors to EPROTONOSUPPORT to indicate other versions of NFS can be tried.  */
int nfs4_check_client_ready(struct nfs_client *clp)
/* Map errors cl_cons_state errors to EPROTONOSUPPORT to indicate other versions of NFS can be tried.  */
int nfs4_check_client_ready(struct nfs_client *clp)
{
	if (!nfs4_has_session(clp))
		return 0;
	if (clp->cl_cons_state < NFS_CS_READY)
		return -EPROTONOSUPPORT;
	return 0;
}