From patchwork Mon Dec 12 20:48:57 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilya Dryomov X-Patchwork-Id: 9471307 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2B061607D3 for ; Mon, 12 Dec 2016 20:50:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 217EF28518 for ; Mon, 12 Dec 2016 20:50:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1690F2851B; Mon, 12 Dec 2016 20:50:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C120528518 for ; Mon, 12 Dec 2016 20:50:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932536AbcLLUuS (ORCPT ); Mon, 12 Dec 2016 15:50:18 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:33573 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932516AbcLLUuP (ORCPT ); Mon, 12 Dec 2016 15:50:15 -0500 Received: by mail-wm0-f66.google.com with SMTP id u144so13766138wmu.0 for ; Mon, 12 Dec 2016 12:50:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references; bh=5e3CTD2C0NcqHTd1NAJcCScxpMJgxQRKRQeIcFe4BX8=; b=afwYvvgOcd+8/rZEAocsyIKcgSzKxGNUp7I0mylLn47iUQJj6gpXP7yZ92A5yI3JcN 3IFSJQDzWMRnXY+tOps4oDedHkjgOAMXBd6rKo7SLFUICjf4L4u6v86Pa1e/NPldSAA1 3HZbXDWYucHi3d/TvkYyLp+ZpRLVJt21PTZjJXqhZOj3sLhkEqp82ksciTdgprLZbAB1 dyRONDUVihukTjgnA8NwO7Zyc7c7MVq1LJdSqm9BXDNWXb/baQDL7CsVv0QFGnRnTv3m NeN6qXJiTWR+qv7Ovde1QHL39SsfxmkSFvyQKoaKaqhyPXEy1Oa1Rs+BBd78YVWqtHpJ yg1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=5e3CTD2C0NcqHTd1NAJcCScxpMJgxQRKRQeIcFe4BX8=; b=SmcarAGHXg3zwSzz9PG8zv32A+lI3Myy3VgqAhRrA5WffaByS0mOyo2+PyEPzyC19m GuKI/RwCTpXaOL4pCC4TPDMoRlqPUI96tBH7okKtF6m9Vh0xHx7AeoPPqSG79U8fzrxo K/Plfkbv5QsTBqxWMODkdVcLYzXzIK3PK7JxwlK7qnjkjwZaMA5KWbB24RRBW67EGLBX Y9JE3jWLg0GC7D6jlBk3wKjJOR5Fr8ah45a3RapI7gDCsH+zSOeViCj++beZkCeg6etX vCkSjYPSThOtjoD3KCJsn495nMZknVA1jVA9RS+7kRvuvdHBK2UNwHpgo58F+eQ6yM0M GMvQ== X-Gm-Message-State: AKaTC03pblBH78G1jFwtejHXdos1zRJN6Cpo2s7qW9Ych1u/29HONllMyQsD8TLUk6Va7A== X-Received: by 10.28.129.81 with SMTP id c78mr20423733wmd.94.1481575813627; Mon, 12 Dec 2016 12:50:13 -0800 (PST) Received: from dhcp-1-105.brq.redhat.com ([213.175.37.12]) by smtp.gmail.com with ESMTPSA id 135sm37201887wmh.14.2016.12.12.12.50.12 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Dec 2016 12:50:12 -0800 (PST) From: Ilya Dryomov To: ceph-devel@vger.kernel.org Subject: [PATCH 12/15] libceph: no need for GFP_NOFS in ceph_monc_init() Date: Mon, 12 Dec 2016 21:48:57 +0100 Message-Id: <1481575740-1834-13-git-send-email-idryomov@gmail.com> X-Mailer: git-send-email 2.4.3 In-Reply-To: <1481575740-1834-1-git-send-email-idryomov@gmail.com> References: <1481575740-1834-1-git-send-email-idryomov@gmail.com> Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP It's called during inital setup, when everything should be allocated with GFP_KERNEL. Signed-off-by: Ilya Dryomov --- net/ceph/mon_client.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/net/ceph/mon_client.c b/net/ceph/mon_client.c index a8effc8b7280..29a0ef351c5e 100644 --- a/net/ceph/mon_client.c +++ b/net/ceph/mon_client.c @@ -1028,21 +1028,21 @@ int ceph_monc_init(struct ceph_mon_client *monc, struct ceph_client *cl) err = -ENOMEM; monc->m_subscribe_ack = ceph_msg_new(CEPH_MSG_MON_SUBSCRIBE_ACK, sizeof(struct ceph_mon_subscribe_ack), - GFP_NOFS, true); + GFP_KERNEL, true); if (!monc->m_subscribe_ack) goto out_auth; - monc->m_subscribe = ceph_msg_new(CEPH_MSG_MON_SUBSCRIBE, 128, GFP_NOFS, - true); + monc->m_subscribe = ceph_msg_new(CEPH_MSG_MON_SUBSCRIBE, 128, + GFP_KERNEL, true); if (!monc->m_subscribe) goto out_subscribe_ack; - monc->m_auth_reply = ceph_msg_new(CEPH_MSG_AUTH_REPLY, 4096, GFP_NOFS, - true); + monc->m_auth_reply = ceph_msg_new(CEPH_MSG_AUTH_REPLY, 4096, + GFP_KERNEL, true); if (!monc->m_auth_reply) goto out_subscribe; - monc->m_auth = ceph_msg_new(CEPH_MSG_AUTH, 4096, GFP_NOFS, true); + monc->m_auth = ceph_msg_new(CEPH_MSG_AUTH, 4096, GFP_KERNEL, true); monc->pending_auth = 0; if (!monc->m_auth) goto out_auth_reply;