Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp256065imm; Fri, 6 Jul 2018 19:06:52 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd1x+ENqbUoSWeIoFoSVQble09BoHSdZQP3SVmnD1km9BowPmFeVE/hjteQ+wZVlGrdVu5a X-Received: by 2002:a17:902:1682:: with SMTP id h2-v6mr12291842plh.327.1530929212081; Fri, 06 Jul 2018 19:06:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530929212; cv=none; d=google.com; s=arc-20160816; b=Spk7iWAvOnf6W0J/3vH2l06Ls1UaexqqjRmshOcfnIMLdPwQVgXr5buM8kbacABfli rzugq+M8soTfrNOWU8xZtT3ct02O5NVomcV0oeI9vfhui70l4UaP9tE5gPiAGp98hfF7 z2WTDTSks1iDW/c03qUAiVEKyOCEshZJ63+PoW4uGi/gDwNQgWA1h/3bF11Wt4h3EyC/ l8g666SGvRr6a0xkvpsKN+wrn4eFVttzwkgth5iE8hmEgQRHfXw7sNqdjnerbYMVLhOh lIfQuvLFtX84NF+m7iJOEfpwI2Cq98/1BItd35YYMx+OjyuFuxXudrhdaJb+ibPKcJLj Hxig== 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=LrmyuQyDV2YsWqUcJmpjQHMBP0iG/gUIPiYxCXiUu9T0D9I/NqRKXd0h17BtcIjjqC jH8uMoieVr9yMjNvzFVodiqw5zkq0p7ljjOtps3lXM5N0FgEuxXPeEJXnzbX0a6JY9wh 3eRRuvBxQ2UWX+NCLDRFKySZk75SMEAiHyvOAo2dtUbeF/DHNRLBHrcpTK34wfLFK3Cu K40jdHIS0Kq/hGt9FfaOY0D9/KexWD00vn2sFFMeoYuVKWfqkBRTtyzZhf4igok0zhxC JERyX9C5xaX9yRjG/Msp0lLL6VfrFV3dWOwlSE7merwCcPRLwAC/wJxCt6/9tmn1rKFm gp0g== 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 d19-v6si10347172pfm.226.2018.07.06.19.06.38; Fri, 06 Jul 2018 19:06:52 -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 S932812AbeGGCFx (ORCPT + 99 others); Fri, 6 Jul 2018 22:05:53 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:47430 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932701AbeGGCFw (ORCPT ); Fri, 6 Jul 2018 22:05:52 -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 ACE7E81AB0C0; Sat, 7 Jul 2018 02:05:51 +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 C3459215688A; Sat, 7 Jul 2018 02:05:47 +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 v4 1/3] uio: use request_threaded_irq instead Date: Fri, 6 Jul 2018 22:05:37 -0400 Message-Id: <1530929139-13652-2-git-send-email-xiubli@redhat.com> In-Reply-To: <1530929139-13652-1-git-send-email-xiubli@redhat.com> References: <1530929139-13652-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.8]); Sat, 07 Jul 2018 02:05:51 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Sat, 07 Jul 2018 02:05:51 +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