Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756829AbdCXJC0 (ORCPT ); Fri, 24 Mar 2017 05:02:26 -0400 Received: from mail-qt0-f181.google.com ([209.85.216.181]:34486 "EHLO mail-qt0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753963AbdCXJCX (ORCPT ); Fri, 24 Mar 2017 05:02:23 -0400 MIME-Version: 1.0 From: Denis Kirjanov Date: Fri, 24 Mar 2017 12:02:21 +0300 Message-ID: Subject: __link_block_group uses GFP_KERNEL To: linux-btrfs@vger.kernel.org Cc: linux-kernel@vger.kernel.org, chris.mason@fusionio.com Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 291 Lines: 10 Hi guys, Looks like that current code does GFP_KERNEL allocation inside __link_block_group. the function invokes kobject_add and internally creates sysfs files with the GFP_KERNEL flag set. But since do_chunk_alloc executes insides the btrfs transaction it's not allowed to sleep. Thanks!