From e700afa8ebbb345657a8351e00814a7bdd8b3dff Mon Sep 17 00:00:00 2001 From: Pavan Sondur Date: Mon, 4 Jan 2010 05:34:37 +0000 Subject: storage/posix: prevent double close of fds resulting in EBADF errors. Signed-off-by: Pavan Vilas Sondur Signed-off-by: Anand V. Avati BUG: 112 (parallel deletion of files mounted by different clients on the same back-end hangs and/or does not completely delete) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=112 --- xlators/storage/posix/src/posix.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xlators/storage/posix') diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c index 450c6b5d9..340d71bcb 100644 --- a/xlators/storage/posix/src/posix.c +++ b/xlators/storage/posix/src/posix.c @@ -1074,6 +1074,8 @@ posix_unlink (call_frame_t *frame, xlator_t *this, close (fd); else inode_ctx_put (loc->inode, this, (uint64_t) fd); + + fd = -1; } fail: if (fd != -1) -- cgit