Received: by 10.223.164.202 with SMTP id h10csp209774wrb; Mon, 13 Nov 2017 05:19:08 -0800 (PST) X-Google-Smtp-Source: AGs4zMbFbUup2cXaPAAyvRWR5gHOe3Qi878u8GhBtDx9QgwAf13TblKfIp4juzfpEhjNEQ9OjJh5 X-Received: by 10.98.0.5 with SMTP id 5mr5206211pfa.34.1510579148016; Mon, 13 Nov 2017 05:19:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510579147; cv=none; d=google.com; s=arc-20160816; b=YFaslvSA0IO+7VF+8MzUzYkq614em3zeQO1lZIFrzG9ygi+4TymkqQgqq/XKAHkArW 84dFpA7Y90l0H66a5ucs/BZJvKg30dz0BELOwDBXJDkxlLoHVdxWVMmQcG7aNPDFVj++ EFrg51nbLYHu67xU/iKvc5uPgBrdhsScXA1saqayGJyap76BrXCZhu5/17lRFKqaVdlL envo8bqvkgkEvJGMNULcG0AlZrKzw1RT2aLTjWsap5CdebyGKtOBWOHSV0zi3bl+8nRt gkHqobAPPDm+qPhKGE/g2tpbmqmmvqNuOUO0GuFOH3f9axVI203YXXRyHEz7xjbZH+Kr kAdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=mr3IrG2ggyIonBsnDQOOJp1JcoF421XhnOqDyo5OOhQ=; b=FoDamPHg9DNSelrfSJYaPVwemFBbbYoTGKvOOhKTzg7HHuuwCYNAC21nW0kkqddYRf TY4mePLptFgDSmdVd4+iOvMcqN5gXMXVnR16CWgvfKujVWrr29bBhtW4WY68bbsg39t8 7UpBS1Gj9Jig2qcyeSCjZNgAsxV/1Qkr0MHQiViwi3BiMeF5k4nW6rNDHy7/B+Gn0cjU iNhgUcpv/EHRAyUHzm4ks6J5bhZUpQ1nsM8ermV/GWF6mBvxUEU+/lgPP45SPyi4kr9z sLBKthOYvT4Ryot9QkGbc5++DdX9YP3ZErY20lN8H13DxPPQAU0oA0Lg5qgxV4AoQjCO AEHg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g68si13635503pgc.304.2017.11.13.05.18.55; Mon, 13 Nov 2017 05:19:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755044AbdKMNRM (ORCPT + 95 others); Mon, 13 Nov 2017 08:17:12 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:51232 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754886AbdKMNCf (ORCPT ); Mon, 13 Nov 2017 08:02:35 -0500 Received: from localhost (LFbn-1-12253-150.w90-92.abo.wanadoo.fr [90.92.67.150]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id D8ABFAAE; Mon, 13 Nov 2017 13:02:31 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ilya Dryomov , David Disseldorp Subject: [PATCH 4.9 77/87] rbd: use GFP_NOIO for parent stat and data requests Date: Mon, 13 Nov 2017 13:56:34 +0100 Message-Id: <20171113125622.126964851@linuxfoundation.org> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20171113125615.304035578@linuxfoundation.org> References: <20171113125615.304035578@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Ilya Dryomov commit 1e37f2f84680fa7f8394fd444b6928e334495ccc upstream. rbd_img_obj_exists_submit() and rbd_img_obj_parent_read_full() are on the writeback path for cloned images -- we attempt a stat on the parent object to see if it exists and potentially read it in to call copyup. GFP_NOIO should be used instead of GFP_KERNEL here. Link: http://tracker.ceph.com/issues/22014 Signed-off-by: Ilya Dryomov Reviewed-by: David Disseldorp Signed-off-by: Greg Kroah-Hartman --- drivers/block/rbd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/block/rbd.c +++ b/drivers/block/rbd.c @@ -2788,7 +2788,7 @@ static int rbd_img_obj_parent_read_full( * from the parent. */ page_count = (u32)calc_pages_for(0, length); - pages = ceph_alloc_page_vector(page_count, GFP_KERNEL); + pages = ceph_alloc_page_vector(page_count, GFP_NOIO); if (IS_ERR(pages)) { result = PTR_ERR(pages); pages = NULL; @@ -2922,7 +2922,7 @@ static int rbd_img_obj_exists_submit(str */ size = sizeof (__le64) + sizeof (__le32) + sizeof (__le32); page_count = (u32)calc_pages_for(0, size); - pages = ceph_alloc_page_vector(page_count, GFP_KERNEL); + pages = ceph_alloc_page_vector(page_count, GFP_NOIO); if (IS_ERR(pages)) { ret = PTR_ERR(pages); goto fail_stat_request; From 1583956519084223708@xxx Mon Nov 13 13:10:50 +0000 2017 X-GM-THRID: 1583956519084223708 X-Gmail-Labels: Inbox,Category Promotions,HistoricalUnread