From: phil Date: Fri, 5 Dec 2003 11:49:50 +0000 (+0000) Subject: b=2313 X-Git-Tag: 1.0.2~96 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=821863d6e277ce4affb810afa1ab80fd5dec6463;p=fs%2Flustre-release.git b=2313 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. --- diff --git a/lustre/mds/mds_open.c b/lustre/mds/mds_open.c index 6ddd8da..1d9b134 100644 --- a/lustre/mds/mds_open.c +++ b/lustre/mds/mds_open.c @@ -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);