The logic in nfs3_create_1_cb issues an extra lookup request to get the newly created file's file handle. However, the response to CREATE operation optionally contains the handle in post_op_fh3 field of CREATE3resok structure. Thus the extra lookup should be issued only if post_op_fh3 is not provided.
The logic in
nfs3_create_1_cb
issues an extra lookup request to get the newly created file's file handle. However, the response to CREATE operation optionally contains the handle inpost_op_fh3
field of CREATE3resok structure. Thus the extra lookup should be issued only if post_op_fh3 is not provided.