From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796384603; b=l35OjGKwCAa/B4vz4sL5e8wkswME++soQl5aKHQ9j+T1FE5+VcGXsVIjJf9+NSQnP5cg aawyNTS1VLCGp/bsX+4nwrVGN/bnt767Wg/WSCxJgUR78vO4I1oSPPYXuZ+5RYUfS3jtH p2a9okDYpsTQ7kzLXI+XXq4jE61c5vohdO+7wDlnIrpVexnibRkzgU4IOk2Qp1k5eNYbK DwYKfsXt5USA9fHYiZ4Imn/ArkEhriu4ZvRdUbuX8dN+rcJOpilk6LMKBcSGqOY+imwak U3AI7qiOBxIpwBw4QWBx9MmBmNAb7VD/WHI55EEIGWQGbUuBIShGaz7PNCZnBAKbD+g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796384603; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=7+cZg4nM07c/pgUFoTCyT0KRnpTr7uNUicHxAB/GCFs=; b=CViMkdydDMaSDlgzKBGuc3dD9F9UhNngB5ntAQgiov0rnPPo31X5ImI61iwFVb8Rnwxi RdRa8QjHkaOV3KDXdJiyWg/upEe0daGTS9NA+UYsIsbmRpdZ+bJtKGf7LyATsD2hwXwVz KwiaampoTme08IqBJOUKC+F5eqaPD+zr63oUB1ft/iG3fFXJIF+RbcqYzPpQY6q/U7A9L KHLqyCd5tphG/yIvqJYQ8NKX5wXhk4R1VygRzMdqx4zA5DgCwCo2Eeu5EOh/5Ief9/SLm J8GQA4LFgjH7kva50svjVg22WxiutyF75V0ifS88YMzYpnzQaPQ+KPGQ65+iKzcM+tg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=YpfN71Q3; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 28341606A322; Fri, 4 Dec 2026 11:43:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=YpfN71Q3 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E973A1F00897; Fri, 4 Dec 2026 11:43:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796384602; bh=7+cZg4nM07c/pgUFoTCyT0KRnpTr7uNUicHxAB/GCFs=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=YpfN71Q3DHbsW+W/mPjCOEnjBWRp6dp10Wj3aiTXAxxEmcyhAAGAyrdL99WU5JRcp 2cIVljMDXMOvFrYGeGxnznXCWh3SxbOJfXvh3gOmBrNkydjpNHpHjYeShqMAQTrFe9 /nXgyxuP9pYi3CWPMCAAJjkz2C+hS4eo9Yj7Gcmg= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Avi Weiss , Jeff Layton , NeilBrown , Anna Schumaker , Sasha Levin Subject: [PATCH 6.6 0219/1167] SUNRPC: wake poll waiters when an empty pipe is unlinked Date: Fri, 4 Dec 2026 18:54:06 +0900 Message-ID: <20261204100707.774346818@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100702.047403948@linuxfoundation.org> References: <20261204100702.047403948@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Avi Weiss [ Upstream commit 702d55edc017632a0c39c1d4bdd579bdbadfd730 ] When an empty rpc_pipefs pipe is unlinked, rpc_purge_list() returns without waking the pipe wait queue. An existing epoll waiter can remain blocked even though rpc_pipe_poll() reports EPOLLHUP and EPOLLERR for the disconnected pipe. Wake the wait queue after clearing RPC_I(inode)->pipe so existing poll waiters are notified regardless of whether messages were purged. Fixes: 9842ef3557ab ("SUNRPC: rpc_timeout_upcall_queue should not sleep") Signed-off-by: Avi Weiss Reviewed-by: Jeff Layton Reviewed-by: NeilBrown Signed-off-by: Anna Schumaker Signed-off-by: Sasha Levin --- net/sunrpc/rpc_pipe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c index f420d84573451..8f24f02028321 100644 --- a/net/sunrpc/rpc_pipe.c +++ b/net/sunrpc/rpc_pipe.c @@ -190,6 +190,7 @@ rpc_close_pipes(struct inode *inode) cancel_delayed_work_sync(&pipe->queue_timeout); rpc_inode_setowner(inode, NULL); RPC_I(inode)->pipe = NULL; + wake_up(&RPC_I(inode)->waitq); inode_unlock(inode); } -- 2.53.0