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=1796387255; b=rtL1gOvmRN12igFx8MKWcDDrzXmBMUFuuRpn+xy5l5zGIzogDClNKxefNT93x2ejBeBG gK7snanHl51vuQXCFtVEMUQZzeT3eYq20ntoUk0zxrja5kt2kwgyPDOhe6yI3yQnQoCRO 5Bc/mQpqT3oeE3Pp72wpDP02TJkUBkFSy8XuOu7kUm7rH0dNTaD5EtWSR3rbat/5Rbrtf U33tHKhgwrdxBF+HDtWYUM6DTy6cEtR4ZnBzF5aubk35PcFfL47AOSGJcVIuQ4K82mcI1 4Ge5OaS0XAErdnZg4foDraLpl77NJSsKYj9O3Ytl6yuFvjlIUcXVoqVMfhu3VmmHCvQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796387255; 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=IEkeHQ/Azp4xZ6WiY5WRfeYGO1VZ3+XqvA2Prbqu7CY=; b=PtO+dwxrTd8VbYYYjq9cVDIR+3CQwREoZldfdBMdZ47x1NLTE6dkT0zrRkpjQjD3gstX dUpV7BSTs3pz01I7UVZwsK0nK4JLDL8/RvCfFUe7MmbnIfdYhamEqykr02xgI1JCmhU6n oZac1Kz1xIc/bohwfR48ROSCzRexAUG/sAW9j1hQ7P7T446fXNIE929rGN8jXYu8IA6KT ldgMRvSyhkX/pmM55JHWidPrqORWkl8Z710PixsxmIuasDuTuW9lWIJPtFYFrfnstMG0e KF1SjnCIXzl/JtFrtBFvsPIZ5M8AlFnDChsIoZcMnAudt9XBp6MG5LPzRAWmZD38LXg== 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=KckCSwvu; 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 588EE606A32C; Fri, 4 Dec 2026 12:27:35 +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=KckCSwvu Received: by smtp.kernel.org (Postfix) with ESMTPSA id C688F1F000CE; Fri, 4 Dec 2026 12:27:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796387255; bh=IEkeHQ/Azp4xZ6WiY5WRfeYGO1VZ3+XqvA2Prbqu7CY=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=KckCSwvuYWSlpXJpALIJUrLsTcEumenUbSThB0ZFcim5SwLXF0l3mymWu5I+whMRb 0jBsV4/EfSL3hSlmNkNMb2M3KtsmlDMGEwT15aSKd+z1zMrzpsJWXpXqKDJYNot+Mf qmoMGpw7ugFlwmd2NjIqBDkM5Nh69jxceo3/OLiw= 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.1 0168/1059] SUNRPC: wake poll waiters when an empty pipe is unlinked Date: Fri, 4 Dec 2026 18:54:59 +0900 Message-ID: <20261204100648.594885177@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100643.980430235@linuxfoundation.org> References: <20261204100643.980430235@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-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 0b6034fab9ab1..9930e04d47bdf 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