]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/nfs/filelayout/filelayout.c
PNFS fix fallback to MDS if got error on commit to DS
[karo-tx-linux.git] / fs / nfs / filelayout / filelayout.c
index 367f8eb19bfa89cc08cb85d4dcab7eab19366b62..c9230fecc77ea1d12ff975173d0b0922eca63ea6 100644 (file)
@@ -202,10 +202,10 @@ static int filelayout_async_handle_error(struct rpc_task *task,
                        task->tk_status);
                nfs4_mark_deviceid_unavailable(devid);
                pnfs_error_mark_layout_for_return(inode, lseg);
-               pnfs_set_lo_fail(lseg);
                rpc_wake_up(&tbl->slot_tbl_waitq);
                /* fall through */
        default:
+               pnfs_set_lo_fail(lseg);
 reset:
                dprintk("%s Retry through MDS. Error %d\n", __func__,
                        task->tk_status);