Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4525110imu; Tue, 29 Jan 2019 03:09:20 -0800 (PST) X-Google-Smtp-Source: ALg8bN6of9MnDsVi9z6pnv9LxXo7zJO5RxnuWzfOC/NdBH6Xtpeph51F5Hgkxyt4qLQq+2cdiPuH X-Received: by 2002:a63:ec13:: with SMTP id j19mr23098498pgh.6.1548760160637; Tue, 29 Jan 2019 03:09:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548760160; cv=none; d=google.com; s=arc-20160816; b=aW8FRp2abtZO21HSawvpRJQmKp8+UEhDWTn4MBR4r7zjm1cNHAEY+bSVr+hqZJJG8g +/1tXWRzYWqTh4+6eMD70ZdZEskY3OdWI82TZOBTp+nVzpiPnFqe46gyO9QakOFn+kfd D6b78djNTpn/31J4h21vB0VA+a9i0Drr1iPq4dRLn33WUE529G6dQE3PaE3EQHxZeRRJ FGOPtHA87C103jXpVuDMD7d3fDkiIjcoH0bcKftjfwEGUonb9et3TmcZncp63ScYeS5k oypGBT0MCniwQLcXfvMyOjjoQGY169UoYFav2Z3HdC1fULDEBo6ViCTFJo0AVoPjvfvX 2ABA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:to:from; bh=tjVRNWRC0Q1tPU5nT7Yer3x4JPgCnJBW9JpSqIRFo/8=; b=S65LzbEFwj4SCLfVpupUZsZtHq0qiboCPD7AgUyj2Tt/hLgc/q0kdKRQuqxeycYMER 3vpMzasjlPU9op9YxD4mz8TE3bwEQYpnQJC+ZwKQrCHFtDkXgv8jiQuPzo0MAnB1S28+ 7d+ioH26m3k6eRC1qqKYpjGhnr5a1MW9HNZgo42QYtsR2Tn7lJG8RvNFqAyCR7+msQpC 6eX6RJKHTBagnRiK38mtaDBc9N3OPzo8rO+o7YtpHtm/NmKY6ohmF2SANbHYe4t4tKL8 44LM+0XXr9s4mYt0ZEW+eb8bV3CTiBFWsAIKxdL1rmWLT4RISaFi6i+Svuv+YQM303cg tFfg== 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 t19si36794648pgk.163.2019.01.29.03.09.04; Tue, 29 Jan 2019 03:09:20 -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 S1727369AbfA2LI7 (ORCPT + 99 others); Tue, 29 Jan 2019 06:08:59 -0500 Received: from mx133-tc.baidu.com ([61.135.168.133]:27663 "EHLO tc-sys-mailedm01.tc.baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726744AbfA2LI7 (ORCPT ); Tue, 29 Jan 2019 06:08:59 -0500 Received: from localhost (cp01-cos-dev01.cp01.baidu.com [10.92.119.46]) by tc-sys-mailedm01.tc.baidu.com (Postfix) with ESMTP id 597F82040041; Tue, 29 Jan 2019 19:08:42 +0800 (CST) From: Li RongQing To: linux-kernel@vger.kernel.org, willy@infradead.org Subject: [PATCH] XArray tests: allocation has to be GFP_ATOMIC under rcu_read_lock Date: Tue, 29 Jan 2019 19:08:42 +0800 Message-Id: <1548760122-13000-1-git-send-email-lirongqing@baidu.com> X-Mailer: git-send-email 1.7.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Li RongQing --- lib/test_xarray.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/test_xarray.c b/lib/test_xarray.c index c596a957f764..5b671c83b73d 100644 --- a/lib/test_xarray.c +++ b/lib/test_xarray.c @@ -108,7 +108,7 @@ static noinline void check_xas_retry(struct xarray *xa) XA_BUG_ON(xa, xas_next_entry(&xas, ULONG_MAX) != xa_mk_value(0)); XA_BUG_ON(xa, xas.xa_node != NULL); - XA_BUG_ON(xa, xa_store_index(xa, 1, GFP_KERNEL) != NULL); + XA_BUG_ON(xa, xa_store_index(xa, 1, GFP_ATOMIC) != NULL); XA_BUG_ON(xa, !xa_is_internal(xas_reload(&xas))); xas.xa_node = XAS_RESTART; XA_BUG_ON(xa, xas_next_entry(&xas, ULONG_MAX) != xa_mk_value(0)); -- 2.16.2