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=1796277894; b=GCbRdvwBmgcqe2w0Rswd1foW8gCljg41NRXhctFBD40jU5tYoXbqfswDz/Anjfg3QEb8 5np6zbFqhJAMo+LfelNWvPL86hqlO/YnLKjTIEWE0oY2hojXYkkdAiJc14bMo87QNgv2R qmJhA3BfXpgDZT0+HaUM2StbY9uwN72d9hIVqDyHAaUVg6rXQc8aawirG3jPbAwkaE7Ze mHkYHDg3KCh9lxOfjUK4HPr5LdEoltM2kIXek/+8KjrUuRV1X0e89Hb3+F77ytvzY4+/T rvSfXsAcIU6XfKqmcjITmZlLwphcxglOLsHxVROV9RBDEDx+JvKl+sHp1Lal7l+9UvA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796277894; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=OaLwCTzZR+e+gOg0aIY7T5cnjlQBB+anmPeaDJ9Boy8=; b=QCOJYdFnI9bpUbbdIzzr5UVQDbEJo2Q8S+iJ85T/G5H2GHvypKvH+l/txuXvcT4jsufQ /MdnFjcJAMh2SyCxTWsugqE2qqrcxyV9lIQLZ5uIh8vU0BrF3PFqH6o9RKSMaHcZ7ZIGu vIy3rA6oTg+O6FmrFnScG+XpV48OuKONPg+Kuw/M9gNNOA8dIeJ4co9yKpE8AepR5lVIu vb6lCv7j2+bCOSJChV5gbXdmizmuy8ovwyB4/Wu2aN1Fbf90LDYLTag3szgz3YEvsx6js 1AM/40fYQjXRPe7zekdx2B4ERAR+PeSZGtoDHxR1f8+hAnfz/PfrvvSaVgGil/nPadg== 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=Zj5AKXq3; 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 105C2606A32F; Thu, 3 Dec 2026 06:04:53 +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=Zj5AKXq3 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9702C1F000C1; Thu, 3 Dec 2026 06:04:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796277893; bh=OaLwCTzZR+e+gOg0aIY7T5cnjlQBB+anmPeaDJ9Boy8=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=Zj5AKXq3Qiv8HgIz5Y2gVaZdO+WQbsyGCNySMNVz03VecB0sW/58BGM4cj4Ez8mtS Czdwm3DmnpfT63f2IrsassYbpautSHbItfB9c+LCudCrBobfb4cYbJ9CRDwiUW4ovc 000SxtgrnkS3O2+FdZHVLhDHZyxtHMHLz8V0OxQLArEtH/q/b8UB5OHvvyf2ps0veW r3vDZ0livd9T9MErO04ztyTrMTtpcXCEHN6mNGB0yq+eIFtuX0ZB6uiSLPO/lmBGyd 2AXqpSvWPFiPL/pzuaoweac4DDbN+15BD4sCN5i2YJI5fqLKVH5cGGLaYiYtwIYO+I lr/sKkf+TRhZw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH net v4] dibs: loopback: reset the client id when the owner unregisters a DMB Reply-To: sashiko-reviews@lists.linux.dev To: "Bryam Vargas" Cc: linux-rdma@vger.kernel.org, linux-s390@vger.kernel.org, "Heiko Carstens" , "Vasily Gorbik" , "Alexander Gordeev" , "Christian Borntraeger" In-Reply-To: <20261203-b4-disp-b330a4df-v4-1-bafca73822d0@proton.me> References: <20261203-b4-disp-b330a4df-v4-1-bafca73822d0@proton.me> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 06:04:53 +0000 X-Mailing-List: linux-s390@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > From: Bryam Vargas >=20 > dibs_lo_unregister_dmb() resets the DMB's dmb_clientid_arr[] entry only > on the last put. If an attacher still holds the DMB, as when an SMC link > group is freed while a peer is still attached, the entry stays set after > the attacher's dibs_lo_detach_dmb() frees the DMB. > dibs_unregister_client() then warns at rmmod smc and returns -EBUSY, > which smc_ism_exit() ignores: smc stays in clients[] and dibs->subs[], > and a later dibs_dev_add() or dibs_dev_del() (rmmod dibs, ISM hotplug) > calls into the unloaded module. >=20 > Reset the entry when the owner unregisters, before its put, as > ism_unregister_dmb() does. The index stays allocated until the last put, > and the attacher's writes no longer raise an interrupt for a client that > gave the DMB up. >=20 > Fixes: cc21191b584c ("dibs: Move data path to dibs layer") > Cc: stable@vger.kernel.org > Reviewed-by: Alexandra Winter > Signed-off-by: Bryam Vargas Sashiko has reviewed this patch and found no issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203-b4-disp-b3= 30a4df-v4-1-bafca73822d0@proton.me?part=3D1