mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-09 23:00:21 +00:00
NFS: Remove a bogus flag setting in pnfs_write_done_resend_to_mds
Since pnfs_write_done_resend_to_mds() does not actually call end_page_writeback() on the pages that are being redirected to the metadata server, callers of fsync() do not see the I/O as complete until the writeback to the MDS finishes. We therefore do not need to set NFS_CONTEXT_RESEND_WRITES, since there is nothing to redrive. Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
This commit is contained in:
parent
67f4b5dc49
commit
edf79efcc9
@ -2817,7 +2817,6 @@ int pnfs_write_done_resend_to_mds(struct nfs_pgio_header *hdr)
|
|||||||
/* Resend all requests through the MDS */
|
/* Resend all requests through the MDS */
|
||||||
nfs_pageio_init_write(&pgio, hdr->inode, FLUSH_STABLE, true,
|
nfs_pageio_init_write(&pgio, hdr->inode, FLUSH_STABLE, true,
|
||||||
hdr->completion_ops);
|
hdr->completion_ops);
|
||||||
set_bit(NFS_CONTEXT_RESEND_WRITES, &hdr->args.context->flags);
|
|
||||||
return nfs_pageio_resend(&pgio, hdr);
|
return nfs_pageio_resend(&pgio, hdr);
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(pnfs_write_done_resend_to_mds);
|
EXPORT_SYMBOL_GPL(pnfs_write_done_resend_to_mds);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user