Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2019821imm; Sun, 12 Aug 2018 05:04:55 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxMDiYlAohr//qK7ltf3RCWxq9cQX4fpxdNUxn4/Ua4poebI7WxPez/MqHx0VDMHk6P3kEh X-Received: by 2002:a17:902:d70d:: with SMTP id w13-v6mr12852863ply.229.1534075495242; Sun, 12 Aug 2018 05:04:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534075495; cv=none; d=google.com; s=arc-20160816; b=0tsmLLlmnyh8m9IAMUXjK9hCtBxsqpj164tHGQhXLOZ74wOj1ZoBczIu27Q7jp+WuG 4+cGL51An8AvO7utdphtaTpMPfGt2ot1W6GrhpFL7DCHFsrXNYaIQQSCsibQJBQTtjcL p0jvc97T2R4miGr8p1JzBFAGYQGoRubtUjxSK/jqQx13adIfvvtiA3f4Y+L6zCcmVZSY Hul2MoaF0nVXnpico+ekNa2nfgrjqwVPUdfoBl3jbr0Zb9GhWnpUW4N+Ae/P32izl95i EVNXLx5voSwDYeiPTY5pJe04hAu2PniWeMBEqVCGCpj8+5wH5L4eLbaSmQhNXRQMIBlw mxmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:arc-authentication-results; bh=WE0cYdbPnPTP4YLU03B77KnbA/SpBt/4WsUD3vX+XeE=; b=N3ESmF9PMgJLbvWMHQHltFp9K7NYDRRK+tlPZ+jV7yKF5/FMhkOiwR5EH7gubj0avK sfPPSDl69MV4GfjMqH9xPOPe7BpmNVaKjlIl+WjbUd6J9RRXpHEXFap49H23XGIN8ta1 r3WhfZQolXsDrpoO6zL1xATJQI/al2k9HjuvmA9ZSeaZQsALsjOF9jdctVTbOIEIDkcd 3Wo6fTi7rhdUdLkcorMhBVDEcP3GQOcpjAY+jAlMVxJu0PPen7dUS40drue5FhPnca3/ itMz86jKUedErdcyhrF5ju7IgmZqIHRvhmCj98/vEETKQvBkQu29i0zojdkO7HwUpD4z q/YA== 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 i124-v6si16090090pfc.110.2018.08.12.05.04.40; Sun, 12 Aug 2018 05:04:55 -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 S1728226AbeHLOg3 (ORCPT + 99 others); Sun, 12 Aug 2018 10:36:29 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:56902 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727801AbeHLOg3 (ORCPT ); Sun, 12 Aug 2018 10:36:29 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0538C40122C4; Sun, 12 Aug 2018 11:58:40 +0000 (UTC) Received: from rhel3.localdomain (ovpn-12-110.pek2.redhat.com [10.72.12.110]) by smtp.corp.redhat.com (Postfix) with ESMTP id 506E710EE77D; Sun, 12 Aug 2018 11:58:36 +0000 (UTC) From: xiubli@redhat.com To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, james.r.harris@intel.com, Xiubo Li , Ahsan Atta Subject: [PATCH] Revert "uio: use request_threaded_irq instead" Date: Sun, 12 Aug 2018 07:58:23 -0400 Message-Id: <20180812115823.10377-1-xiubli@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Sun, 12 Aug 2018 11:58:40 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Sun, 12 Aug 2018 11:58:40 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.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 Since mutex lock in irq hanler is useless currently, here will remove it together with it. This reverts commit 9421e45f5ff3d558cf8b75a8cc0824530caf3453. Reported-by: james.r.harris@intel.com CC: Ahsan Atta Signed-off-by: Xiubo Li --- drivers/uio/uio.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/uio/uio.c b/drivers/uio/uio.c index 5d421d7..d7fb493 100644 --- a/drivers/uio/uio.c +++ b/drivers/uio/uio.c @@ -443,13 +443,10 @@ static irqreturn_t uio_interrupt(int irq, void *dev_id) struct uio_device *idev = (struct uio_device *)dev_id; irqreturn_t ret; - mutex_lock(&idev->info_lock); - ret = idev->info->handler(irq, idev->info); if (ret == IRQ_HANDLED) uio_event_notify(idev->info); - mutex_unlock(&idev->info_lock); return ret; } @@ -969,9 +966,8 @@ 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_threaded_irq(info->irq, NULL, uio_interrupt, - info->irq_flags, info->name, idev); - + ret = request_irq(info->irq, uio_interrupt, + info->irq_flags, info->name, idev); if (ret) goto err_request_irq; } -- 1.8.3.1