From patchwork Wed May 11 10:29:53 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Henry Chang X-Patchwork-Id: 776062 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 p4BFfjCF025002 for ; Wed, 11 May 2011 15:41:46 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753156Ab1EKPlg (ORCPT ); Wed, 11 May 2011 11:41:36 -0400 Received: from mail-pw0-f46.google.com ([209.85.160.46]:44975 "EHLO mail-pw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753898Ab1EKPil (ORCPT ); Wed, 11 May 2011 11:38:41 -0400 Received: by pwi15 with SMTP id 15so296924pwi.19 for ; Wed, 11 May 2011 08:38:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=afUGbqwlTrsRHSezkdnYcS/OlQUJ3lBOnuf+XCg85SQ=; b=QRbYOxLm3AnfLyuVVRYRvpvE7XuQwc6+yUyLC763zkVsNjhsOZX/GDlsdIMyV47jtd aU14ukrHkzVYd7GKyV8LIeHC9hZLqQX9Vo0dbyHwmzSNuaFDvtTfKK534lJmuzXKIlPq x9ZhrwW1qTRBaSFlv1e3HvQoPkZHg/zwFN1jM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=gMN6qkrvgPDaiFDR0LdW2FMPiJDU7fb1HK2PrkEw1ayVwZZYKxEeawY+WQDFkhnT0o JX2rkMpxhM1T6plpR7FzRDcN2i97JyC8XmOMXg/htB/b9obIzy4bVsmHXA2qr8AEMCoy Bpt6WGcodp8nxcaW2eIlyHCz+3WnlA6/9iikY= Received: by 10.68.4.161 with SMTP id l1mr2865632pbl.55.1305109994180; Wed, 11 May 2011 03:33:14 -0700 (PDT) Received: from localhost.localdomain ([122.146.30.126]) by mx.google.com with ESMTPS id h9sm911033pbc.36.2011.05.11.03.33.11 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 11 May 2011 03:33:13 -0700 (PDT) From: Henry C Chang To: ceph-devel@vger.kernel.org Cc: Henry C Chang Subject: [PATCH 2/3] ceph: fix list_add in ceph_put_snap_realm Date: Wed, 11 May 2011 10:29:53 +0000 Message-Id: <1305109794-7967-2-git-send-email-henry.cy.chang@gmail.com> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: <1305109794-7967-1-git-send-email-henry.cy.chang@gmail.com> References: <1305109794-7967-1-git-send-email-henry.cy.chang@gmail.com> 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]); Wed, 11 May 2011 15:41:46 +0000 (UTC) Signed-off-by: Henry C Chang --- fs/ceph/snap.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/ceph/snap.c b/fs/ceph/snap.c index e86ec11..24067d6 100644 --- a/fs/ceph/snap.c +++ b/fs/ceph/snap.c @@ -206,7 +206,7 @@ void ceph_put_snap_realm(struct ceph_mds_client *mdsc, up_write(&mdsc->snap_rwsem); } else { spin_lock(&mdsc->snap_empty_lock); - list_add(&mdsc->snap_empty, &realm->empty_item); + list_add(&realm->empty_item, &mdsc->snap_empty); spin_unlock(&mdsc->snap_empty_lock); } }