Whamcloud - gitweb
b=2313
authorphil <phil>
Fri, 5 Dec 2003 11:49:50 +0000 (11:49 +0000)
committerphil <phil>
Fri, 5 Dec 2003 11:49:50 +0000 (11:49 +0000)
My fix to bug 2313 accidentally created a lot of noise by returning
non-zero return codes when multiple clients had a file open for write.

lustre/mds/mds_open.c

index 6ddd8da..1d9b134 100644 (file)
@@ -1075,6 +1075,9 @@ int mds_mfd_close(struct ptlrpc_request *req, struct obd_device *obd,
                         CERROR("error in setattr(%s): rc %d\n", fidname, rc);
 #endif
         }
+        /* If other clients have this file open for write, rc will be > 0 */
+        if (rc > 0)
+                rc = 0;
         l_dput(mfd->mfd_dentry);
         mds_mfd_destroy(mfd);