This skips the WARN_ON_ONCE, but doesnt change behavior (the memcmp would
fail).
Signed-off-by: Weston Andros Adamson <dros@primarydata.com>
Signed-off-by: Tom Haynes <Thomas.Haynes@primarydata.com>
 
        verfp = nfs_direct_select_verf(dreq, data->ds_clp,
                                         data->ds_commit_index);
-       WARN_ON_ONCE(verfp->committed < 0);
+
+       /* verifier not set so always fail */
+       if (verfp->committed < 0)
+               return 1;
+
        return memcmp(verfp, &data->verf, sizeof(struct nfs_writeverf));
 }