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=1796058251; b=iCbGf7nqZK1Fb9kVl2+pj+rHGCwqovBH6DX07ykGLFXgJw3m1XcY85o2LBdjN0qqn59q 1+IsqC77Mt6JcNJIzHwcVbofkKWjO0uO71/YQkDtnjICGUbA5Zxgk6lrU76COg4YOOCPD pOA6ix27CujAH/GDpwo22WDvQ90koBd6GFsx2JUkF3mug36jLRqHw0N90ulzPbMbvoJtx zpEtwkw4N1q3xG+Yju0PApI5ETlhZhJKvRuZfcxtrfSva+otWIayEkmqjDN8mIXNG4XkX Cwfcq0u3Or0Zzu/KiM9fc3qO31LS2zrxJf8macmhyc5DAvUKWxVIJ0ztcX+AsotJiTQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796058251; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=CUetjrokCKVbNPFj5OduTcQlsDOSKrx6wDR/SdXVFu4=; b=C6QmSroerfqR1HBB4dE+PwL6iOBpngJBfzuFiS0bHXrb0ijZDKtxcYpUoyO6/cABYtuP nuBxPmeU1Vk8d7InVfxRLmD50D8HAnyHRARCCTazyjsz92XbwOerLEmNtaejBGUMtujpL 3515PYdtuZ0QsfVe1HChgjuNwSCinppbaC/v9ohES3sl0pEx/SqQGYEJywT8FxEFnlF0Y 0qc32Lwg9I+pKJ++53QkfWJ9tCjj/QqJQPzW+VUwiXZiBdDeHwFToaANXdBS9TbNnDp+z U4xA2FVdGI8CSlJkR8rrHuQB9QZRUt6jP+/8o5nyCfy31b7hHA4LMsZEbUWE37Pe7PA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=gIx7sFkL; 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 F0DF4606A334 for ; Mon, 30 Nov 2026 17:04:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=gIx7sFkL Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7D06C1F000C1; Mon, 30 Nov 2026 17:04:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796058250; bh=CUetjrokCKVbNPFj5OduTcQlsDOSKrx6wDR/SdXVFu4=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=gIx7sFkLNd7j9I8hnxotKDDAw4tevqURjClWiXrNIKWRQIkjFJ/O1/Q5ARiYwYYMW hBmdBWssVVxFn+Jy6MDaWTFXqfhqGX7WHFXNAbQt1iDiVsxfvY0/zcQsVG8+3TbfC0 PJ7gyV39IYGjd3W67Xbhj87tivgcSjAm2S3083bDZgS7wu5klo8WvSud6Dsy5IssUa ssDYD8vcKSNOKQOQlA2Tod2bTFtWDX9jQDI33j/lt+ruEWHL4xkxPvA/uCenq1wSHq ib/CvGslnUCMzTL49MHmPCHidZoTDpqHbs3gkhPR3TQSvHfx7AkeF+BaTILCGqu9MY vChuwi/BcwnWA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH net] net/rds: use wq_has_sleeper() in rds_transition_frwr_state() Reply-To: sashiko-reviews@lists.linux.dev To: "Zhenwen Liang" Cc: linux-rdma@vger.kernel.org In-Reply-To: <20261130164729.981519-1-zhenwenliang@google.com> References: <20261130164729.981519-1-zhenwenliang@google.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Mon, 30 Nov 2026 17:04:10 +0000 X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > rds_transition_frwr_state() decrements i_fastreg_inuse_count with > atomic_dec() and then checks waitqueue_active(). Nothing orders the > decrement before the wait queue load, so on arm64 or powerpc > rds_ib_conn_path_shutdown() can miss the wakeup and sleep until its > 1 s timeout. Use wq_has_sleeper(), which adds the missing full barrier. >=20 > Allison Henderson pointed out that the sashiko review of a similar fix > flagged this site. The analysis was checked, and this patch prepared, > with the help of a formal analysis tool we are developing that uses AI > assistance; I have reviewed the analysis and the patch. >=20 > Fixes: 3a2886cca703 ("net/rds: Keep track of and wait for FRWR segments i= n use upon shutdown") > Suggested-by: Allison Henderson > Signed-off-by: Zhenwen Liang Sashiko has reviewed this patch and found no issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261130164729.9815= 19-1-zhenwenliang@google.com?part=3D1