Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9089849pxu; Mon, 28 Dec 2020 06:23:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJxIYzV3ZbNug+nIVb0CRGZdenyQKU3ZU0m9KWpEjLthzKpNxB/303ChFwYsIEo+/e1O55zV X-Received: by 2002:a17:906:81d6:: with SMTP id e22mr42542097ejx.476.1609165395890; Mon, 28 Dec 2020 06:23:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609165395; cv=none; d=google.com; s=arc-20160816; b=xWwKaNqpYefqgsXFt6C0jwEqtqQPBBei/nQXeryUkdVSxK+5KbMyC/5JwDIMGqmaMB Rnz6lM3GBA35DJ+8TVYioGyZOBTLpXeZU1jL+Vh+fCrYckZ/bqIjPYjkmRswUEbtG1Fg iICBs+dK69WlZyIL6CVaJ93D8gWtCJwKx1Ygw+inUbHI8Jqxji//VK3dLQJIj/e9w1hl Q+uN5yx1Q/olGhb8mVoQhXvl8YsMN2M8b4y+odIhXyeKu5MJ2mv8RoJHMRYx4OdIneR8 hHMqyNFUFywBxTPc9URSU5QnTPmv/Rq+inZLuyhUoL4JWWP7KAZVOsIvvJydsxiSSllN QPXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=PaT8VNSOcWIFd9HI+fIKodH+5kXiz1LlPMrqFiRuI6M=; b=M9UzepHIMa4D3u+WKS/sLXB0WL8qQMY2XMouQZ68SN4ncNeWNR1H7uJzZ61XS09s3g h+PrK5+q/9aur/PByt7jFWge+koxEkQiqzbViBWMPbGx4eE3usP6/ekCF1iGw98ufLRf St3APxxVgA17KmDjXdEEDC3OM00klA8eXUwYyQdHLM5jxTT0tNUQ+RHHKao0oAHbnfTq F79LfzBQqYVqwi+ErJNwoDtGXqOuw5x55ICCPaURdiReQIHD7TgosKcTVa93MaTEzyCk /hZJQL9TruDlLUfbaNovjhVuStz41xMMDaiBXCKZy2e+tt3gusOMQDVRaZdTIXnC4wgc dh7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mFIQTk2P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h15si20248128ejq.383.2020.12.28.06.22.52; Mon, 28 Dec 2020 06:23:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mFIQTk2P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2436567AbgL1OUF (ORCPT + 99 others); Mon, 28 Dec 2020 09:20:05 -0500 Received: from mail.kernel.org ([198.145.29.99]:55398 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2408006AbgL1OUE (ORCPT ); Mon, 28 Dec 2020 09:20:04 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6C9A8224D2; Mon, 28 Dec 2020 14:19:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609165164; bh=dsO4pAir/3Nd1Q/udkQLs/3ftxCvTKnhFW5oc9/Dqu4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mFIQTk2PDVdLVw1amZERM+PIokfC3txzOIyTXTbFRFSGZqfBv5uAGHWkD3YfKORBg XOYOpjxR6HdUFNOM9iu3IBdK5f0A+Vxc2AQYsEE86wJlByMPLL7pFGGOwRzJRlrATG QcnwUQDX2Ejk6iOnFRKSSAc7BYHU3h4cxtxZEjsk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Anton Ivanov , Richard Weinberger , Sasha Levin Subject: [PATCH 5.10 434/717] um: Monitor error events in IRQ controller Date: Mon, 28 Dec 2020 13:47:12 +0100 Message-Id: <20201228125041.764461551@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Anton Ivanov [ Upstream commit e3a01cbee9c5f2c6fc813dd6af007716e60257e7 ] Ensure that file closes, connection closes, etc are propagated as interrupts in the interrupt controller. Fixes: ff6a17989c08 ("Epoll based IRQ controller") Signed-off-by: Anton Ivanov Signed-off-by: Richard Weinberger Signed-off-by: Sasha Levin --- arch/um/os-Linux/irq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/um/os-Linux/irq.c b/arch/um/os-Linux/irq.c index d508310ee5e1e..f1732c308c615 100644 --- a/arch/um/os-Linux/irq.c +++ b/arch/um/os-Linux/irq.c @@ -48,7 +48,7 @@ int os_epoll_triggered(int index, int events) int os_event_mask(int irq_type) { if (irq_type == IRQ_READ) - return EPOLLIN | EPOLLPRI; + return EPOLLIN | EPOLLPRI | EPOLLERR | EPOLLHUP | EPOLLRDHUP; if (irq_type == IRQ_WRITE) return EPOLLOUT; return 0; -- 2.27.0