From 821863d6e277ce4affb810afa1ab80fd5dec6463 Mon Sep 17 00:00:00 2001 From: phil Date: Fri, 5 Dec 2003 11:49:50 +0000 Subject: [PATCH] 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. --- lustre/mds/mds_open.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 1.8.3.1