Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1298699imm; Thu, 5 Jul 2018 19:58:36 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe6d3FNR85aKy94OSQbowjyErFZF9OCJK8amWzHLtfJhucM8Z/9mojdzgbtqdo+RrDsbNMM X-Received: by 2002:a65:4cc5:: with SMTP id n5-v6mr3162085pgt.451.1530845916402; Thu, 05 Jul 2018 19:58:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530845916; cv=none; d=google.com; s=arc-20160816; b=SIydVjafvaYuldM1icPnbkUoArGdzQQ6BW+ShaMZ1Qc/sVTLXzZDFIeqptXiN9YbdY EQVQF8R6OIgD9tZcrQ4PicMmXeQUjT4EA6vD3vNEF9j/2lWZFXkUR9cJwAJjA/QtoNg5 9bVSelFglKb8IE+0+O5g/hdQkmMGXdJgyA2VYK0R4Dmf4FhdeGcmO+U+A9WDF4jnjTkc Jmf9ATd+bjyKnS8fq7PuM6F5qtyPpwZIJcfcr5+WEu7cXSHmHHOyYCr0l/qWC108HpIh ajYaJPmaFZKjGjN2NNckJdkbL1JVMHNkiNlO19Cadn4sSdnkzLMexI9kCNzRd3/YAruT ox+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=VCvniLHSe36jgiB1L6PfUsOtg0yn+Dp2EwT2o/tFMWE=; b=A2dJeYeAOkryjF14DYW2mrAlZ/Cfr0dd3yxw54qjv6MS8Fsrkoy5vzEEEWSte2MOLn 6jraQDv6vMC/nwBqCUCdcHqIE//R/TG5bn4/89vnbI6/eWvtuGYpqqA43V4lDYaUp+RX kVinuSZrNGi1CqBtTDNncJlMLJl6ok4sY9YPSs1AAmkn7uwUlBtGvvD0Gzr6GI4utCqV AlCQ8HtFA/qQzKDSEG/4kr2Dr+ZSHOjleuzvJqvEcLUPnsKOkwgL3cMTCOY65JwdiZS8 4NzhX03qR3giNiRWA5DjdBSfwxm8Qd/wDYvzeEh+5Sy5hPvMV7zWkA2KigIn9C+Jqn77 32gw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l23-v6si7760876pfg.326.2018.07.05.19.58.22; Thu, 05 Jul 2018 19:58:36 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932537AbeGFC5c (ORCPT + 99 others); Thu, 5 Jul 2018 22:57:32 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:46220 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932199AbeGFC5b (ORCPT ); Thu, 5 Jul 2018 22:57:31 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id BC83A40AC6DE; Fri, 6 Jul 2018 02:57:30 +0000 (UTC) Received: from gblock2.localdomain (ovpn-12-18.pek2.redhat.com [10.72.12.18]) by smtp.corp.redhat.com (Postfix) with ESMTP id 73D26215688A; Fri, 6 Jul 2018 02:57:24 +0000 (UTC) From: xiubli@redhat.com To: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org Cc: hamish.martin@alliedtelesis.co.nz, jannh@google.com, pkalever@redhat.com, pkarampu@redhat.com, atumball@redhat.com, sabose@redhat.com, mchristi@redhat.com Subject: [PATCH v3 1/3] uio: use request_threaded_irq instead Date: Thu, 5 Jul 2018 22:57:14 -0400 Message-Id: <1530845836-49101-2-git-send-email-xiubli@redhat.com> In-Reply-To: <1530845836-49101-1-git-send-email-xiubli@redhat.com> References: <1530845836-49101-1-git-send-email-xiubli@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Fri, 06 Jul 2018 02:57:30 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Fri, 06 Jul 2018 02:57:30 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'xiubli@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Xiubo Li Prepraing for changing to use mutex lock. Signed-off-by: Xiubo Li --- drivers/uio/uio.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/uio/uio.c b/drivers/uio/uio.c index e8f4ac9..b4b2ae1 100644 --- a/drivers/uio/uio.c +++ b/drivers/uio/uio.c @@ -902,8 +902,9 @@ int __uio_register_device(struct module *owner, * FDs at the time of unregister and therefore may not be * freed until they are released. */ - ret = request_irq(info->irq, uio_interrupt, - info->irq_flags, info->name, idev); + ret = request_threaded_irq(info->irq, NULL, uio_interrupt, + info->irq_flags, info->name, idev); + if (ret) goto err_request_irq; } -- 1.8.3.1