From patchwork Wed Sep 7 13:20:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oliver Neukum X-Patchwork-Id: 603757 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 32E0BC38145 for ; Wed, 7 Sep 2022 13:20:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229506AbiIGNUx (ORCPT ); Wed, 7 Sep 2022 09:20:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229464AbiIGNUw (ORCPT ); Wed, 7 Sep 2022 09:20:52 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45F758E0C8 for ; Wed, 7 Sep 2022 06:20:44 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 42F3F339F5; Wed, 7 Sep 2022 13:20:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1662556843; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=mU6rdOnXwBTtttdULfSjDlRW9n5ZgjOKJZSIH48B2vQ=; b=eeYQebXRteXDDYuFk0U+1g7mwmw95udgM1iADZyQOjLQr/Mmi7SxfLh4axBYdlpOzrrsC5 mp67FEFLK5eVQci9Tht32F8TFjRHnjKdA3IyuS/3lIW8i5XSFuoAuf2RPkCQaxz7kb7i8t FaRimZpdDri0fLbsXk9S/juJxvyBPG4= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 06D2A13486; Wed, 7 Sep 2022 13:20:42 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 4ItWO6qaGGO3GQAAMHmgww (envelope-from ); Wed, 07 Sep 2022 13:20:42 +0000 From: Oliver Neukum To: johan@kernel.org, linux-usb@vger.kernel.org Cc: Oliver Neukum Subject: [PATCH] USB: serial: ch341: GFP_KERNEL in reset_resume() Date: Wed, 7 Sep 2022 15:20:40 +0200 Message-Id: <20220907132040.7747-1-oneukum@suse.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org All instances of reset_resume() are potential parts of the block IO path. Use GFP_NOIO. Signed-off-by: Oliver Neukum --- drivers/usb/serial/ch341.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/serial/ch341.c b/drivers/usb/serial/ch341.c index af01a462cc43..3d4f68d58513 100644 --- a/drivers/usb/serial/ch341.c +++ b/drivers/usb/serial/ch341.c @@ -137,7 +137,7 @@ static int ch341_control_in(struct usb_device *dev, r = usb_control_msg_recv(dev, 0, request, USB_TYPE_VENDOR | USB_RECIP_DEVICE | USB_DIR_IN, value, index, buf, bufsize, DEFAULT_TIMEOUT, - GFP_KERNEL); + GFP_NOIO); if (r) { dev_err(&dev->dev, "failed to receive control message: %d\n", r);