From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 57084C43334 for ; Sat, 16 Jul 2022 15:34:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232206AbiGPPeV (ORCPT ); Sat, 16 Jul 2022 11:34:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229501AbiGPPeT (ORCPT ); Sat, 16 Jul 2022 11:34:19 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFF1F1DA4B; Sat, 16 Jul 2022 08:34:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:To:From:Date:Sender:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description; bh=wOpN4Xcrm1wWfOr3I3YP/LITpvpz8YcLjWLbz+//1Fg=; b=tB3vlOW8KjBf1503ZZOl4AMcSm 2zgrOZlMyXQx5taC7Z3Wn0ql7nCVlPZ0jY2c6WTrZTQnKMj9OqioZFIc+Jo8zHa/aeEB5nxEpMPka utB1j2CM0vclX7z7u4TBAcjMwr4tyrWn0C4K9E4flGeEVIvgVdAlnYW5jRRY+V+D0WvF8qV09OWRB J4QFz+ZwfJTDdZGLqdrqzbXhGPvkCwkXkpiur9TB+71DBkJLbc0vWWkJ6ofha2XfSJIAGxOj0cDj5 vy66LNTtASl4Tcr314ty0NBQk4fkuPQaEy7OfThgMhdfYQoOdgctEJTWDJACQLKGmNVu++JrKk1if 9abj4y1g==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1oCjo4-00BA99-Uc; Sat, 16 Jul 2022 15:34:13 +0000 Date: Sat, 16 Jul 2022 16:34:12 +0100 From: Matthew Wilcox To: David Sterba , torvalds@linux-foundation.org, linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [GIT PULL] Btrfs fixes for 5.19-rc7 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jul 16, 2022 at 04:06:20PM +0200, David Sterba wrote: > Note about the xarray API: > > The possible sleeping is documented next to xa_insert, however there's > no runtime check for that, like is eg. in radix_tree_preload. The > context does not need to be atomic so it's not as simple as > > might_sleep_if(gfpflags_allow_blocking(gfp)); > > or > > WARN_ON_ONCE(gfpflags_allow_blocking(gfp)); > > Some kind of development time debugging/assertion aid would be nice. Are you saying that https://git.infradead.org/users/willy/xarray.git/commitdiff/c195d497ca1ff673c2e6935152a0a5b6be2efdc9 is wrong? It's been in linux-next for the last week since you drew it to my attention that this would be useful.