From patchwork Thu Mar 3 20:40:07 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sage Weil X-Patchwork-Id: 607391 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p23KcK3F015674 for ; Thu, 3 Mar 2011 20:40:06 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758739Ab1CCUkD (ORCPT ); Thu, 3 Mar 2011 15:40:03 -0500 Received: from cobra.newdream.net ([66.33.216.30]:52166 "EHLO cobra.newdream.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758708Ab1CCUj7 (ORCPT ); Thu, 3 Mar 2011 15:39:59 -0500 Received: from localhost.localdomain (ip-66-33-206-8.dreamhost.com [66.33.206.8]) by cobra.newdream.net (Postfix) with ESMTPA id BBA97BC94D; Thu, 3 Mar 2011 12:41:54 -0800 (PST) From: Sage Weil To: ceph-devel@vger.kernel.org Cc: Sage Weil Subject: [PATCH 5/8] libceph: retry after authorization failure Date: Thu, 3 Mar 2011 12:40:07 -0800 Message-Id: <1299184810-19125-6-git-send-email-sage@newdream.net> X-Mailer: git-send-email 1.7.0 In-Reply-To: <1299184810-19125-1-git-send-email-sage@newdream.net> References: <1299184810-19125-1-git-send-email-sage@newdream.net> Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 03 Mar 2011 20:40:07 +0000 (UTC) diff --git a/net/ceph/messenger.c b/net/ceph/messenger.c index 35b36b8..6bd5025 100644 --- a/net/ceph/messenger.c +++ b/net/ceph/messenger.c @@ -1248,8 +1248,6 @@ static int process_connect(struct ceph_connection *con) con->auth_retry); if (con->auth_retry == 2) { con->error_msg = "connect authorization failure"; - reset_connection(con); - set_bit(CLOSED, &con->state); return -1; } con->auth_retry = 1;