From patchwork Tue Mar 15 09:18:02 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Henry Chang X-Patchwork-Id: 635461 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 p2F9IMPM012734 for ; Tue, 15 Mar 2011 09:19:46 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752342Ab1COJTq (ORCPT ); Tue, 15 Mar 2011 05:19:46 -0400 Received: from mail-px0-f179.google.com ([209.85.212.179]:57899 "EHLO mail-px0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752201Ab1COJTp (ORCPT ); Tue, 15 Mar 2011 05:19:45 -0400 Received: by pxi2 with SMTP id 2so111580pxi.10 for ; Tue, 15 Mar 2011 02:19:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:subject:date:message-id:x-mailer :in-reply-to:references; bh=q5FIvUpLM6txj5cpv9YyEgE/yYu8iU0f7It4MDIBu8k=; b=oBwNge05RggcWk9x+SoDhuPXPMnyQl7Ge9HjMWcZ0/GFvoSTrOiVfMoSrSYkHQ3vWO QKz8yQ9vvSc2S0DlF2pVOccUO9Ahe3FycoMvQmlZKpciB/cxUh2u4ASJ6ltDmNbIgleb HMq5y9lmHlJ6JTG5w5rgrdp/glkfX5aEApZ20= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:x-mailer:in-reply-to:references; b=Hn3gXX2dbUHPuPPApmzpvl0ZZkPQtmztzQRGXfI3r74e3tO/w/1Uk2urMqULCsKhPd TJWuBzogZTQRhYHLanav/C1doOBJ2AMiu0lUMsUc3eyJBeZVby1qBMk7rp5J+LyVekDc 2voFQdtpCQJOe9PLdti5qD9h/LdAmXY9fzWak= Received: by 10.142.249.7 with SMTP id w7mr11607549wfh.88.1300180785189; Tue, 15 Mar 2011 02:19:45 -0700 (PDT) Received: from localhost.localdomain ([122.146.30.126]) by mx.google.com with ESMTPS id d35sm11481897wfj.9.2011.03.15.02.19.42 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 15 Mar 2011 02:19:44 -0700 (PDT) From: Henry C Chang To: ceph-devel@vger.kernel.org Subject: [PATCH 2/2] ceph: add request to the tail of unsafe write list Date: Tue, 15 Mar 2011 09:18:02 +0000 Message-Id: <1300180682-18749-2-git-send-email-henry_c_chang@tcloudcomputing.com> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: <1300180682-18749-1-git-send-email-henry_c_chang@tcloudcomputing.com> References: <1300180682-18749-1-git-send-email-henry_c_chang@tcloudcomputing.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]); Tue, 15 Mar 2011 09:19:47 +0000 (UTC) diff --git a/fs/ceph/file.c b/fs/ceph/file.c index db5d863..bc09e72 100644 --- a/fs/ceph/file.c +++ b/fs/ceph/file.c @@ -564,7 +564,7 @@ more: * start_request so that a tid has been assigned. */ spin_lock(&ci->i_unsafe_lock); - list_add(&req->r_unsafe_item, &ci->i_unsafe_writes); + list_add_tail(&req->r_unsafe_item, &ci->i_unsafe_writes); spin_unlock(&ci->i_unsafe_lock); ceph_get_cap_refs(ci, CEPH_CAP_FILE_WR); }