[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1548760122-13000-1-git-send-email-lirongqing@baidu.com>
Date: Tue, 29 Jan 2019 19:08:42 +0800
From: Li RongQing <lirongqing@...du.com>
To: linux-kernel@...r.kernel.org, willy@...radead.org
Subject: [PATCH] XArray tests: allocation has to be GFP_ATOMIC under rcu_read_lock
Signed-off-by: Li RongQing <lirongqing@...du.com>
---
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
Powered by blists - more mailing lists