We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2259f96 commit 834e465Copy full SHA for 834e465
fs/nfs/direct.c
@@ -166,8 +166,11 @@ nfs_direct_select_verf(struct nfs_direct_req *dreq,
166
struct nfs_writeverf *verfp = &dreq->verf;
167
168
#ifdef CONFIG_NFS_V4_1
169
- if (ds_clp) {
170
- /* pNFS is in use, use the DS verf */
+ /*
+ * pNFS is in use, use the DS verf except commit_through_mds is set
171
+ * for layout segment where nbuckets is zero.
172
+ */
173
+ if (ds_clp && dreq->ds_cinfo.nbuckets > 0) {
174
if (commit_idx >= 0 && commit_idx < dreq->ds_cinfo.nbuckets)
175
verfp = &dreq->ds_cinfo.buckets[commit_idx].direct_verf;
176
else
0 commit comments