diff options
author | Terry Loftin <terry.loftin@hp.com> | 2009-10-23 03:36:01 +0200 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2009-10-23 20:16:30 +0200 |
commit | a8b40bc7e635831b61c43acc71a86d3a68b2dff0 (patch) | |
tree | 8a91dcd2149f47d2a2b6f7b49d653dd168c908a8 /fs/nilfs2/page.h | |
parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-for-linus (diff) | |
download | linux-a8b40bc7e635831b61c43acc71a86d3a68b2dff0.tar.xz linux-a8b40bc7e635831b61c43acc71a86d3a68b2dff0.zip |
nfs: Panic when commit fails
Actually pass the NFS_FILE_SYNC option to the server to avoid a
Panic in nfs_direct_write_complete() when a commit fails.
At the end of an nfs write, if the nfs commit fails, all the writes
will be rescheduled. They are supposed to be rescheduled as NFS_FILE_SYNC
writes, but the rpc_task structure is not completely intialized and so
the option is not passed. When the rescheduled writes complete, the
return indicates that they are NFS_UNSTABLE and we try to do another
commit. This leads to a Panic because the commit data structure pointer
was set to null in the initial (failed) commit attempt.
Signed-off-by: Terry Loftin <terry.loftin@hp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nilfs2/page.h')
0 files changed, 0 insertions, 0 deletions