Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp3125188lqt; Tue, 23 Apr 2024 10:58:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXZvRuYNP0u0SkxwpqtA2gdrt3fM8fy6Ea7n+8ctg39jOh7OLPN9i2podDC3slCOlWDqOJXCJEaBG07pixQ3Brt92FnJd/6UA3kXK5MDg== X-Google-Smtp-Source: AGHT+IE3J07unbH3PnRVkXHRJK8ThEo0YQGWwDzpL4g4cOlb0n9vhC6BJaKJWr6RavOR1xLe3o6J X-Received: by 2002:a17:902:e746:b0:1e6:f93:801d with SMTP id p6-20020a170902e74600b001e60f93801dmr208864plf.58.1713895090123; Tue, 23 Apr 2024 10:58:10 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id l15-20020a170903120f00b001e556c4c001si10231996plh.51.2024.04.23.10.58.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 10:58:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-2965-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-11-20 header.b="XO5/QZn3"; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=VoJC9bZG; arc=fail (signature failed); spf=pass (google.com: domain of linux-nfs+bounces-2965-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-nfs+bounces-2965-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=oracle.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id DB44528A395 for ; Tue, 23 Apr 2024 17:49:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8F12213DBA8; Tue, 23 Apr 2024 17:49:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="XO5/QZn3"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="VoJC9bZG" X-Original-To: linux-nfs@vger.kernel.org Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E995113CA96 for ; Tue, 23 Apr 2024 17:49:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=205.220.165.32 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713894578; cv=fail; b=aTToJSNMRM2V0sZS+Wqughu57DvXHOHIZo2oEAXRW/2fIhejcRCofCwlG8XveSPoSXCzldZvzeEtWw6fzhst9dMbboXDroIFFPnHh2qNBg/BXDuDotyZEtgga7AkLSI4Pro9Kbo3taQodugKnyiuSDUnPg7C9fy7/346dndnhdo= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713894578; c=relaxed/simple; bh=Qe4YlWP4c+z31ZF7M9PgY8g+BuwkyxfaNNDlgPO57Xs=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=h2ltMvwgJtlvatOyIEZYHXplpxGlewIj0CKwVGcvEC3KfyZGXyYAO+FYk4omF46jwiAjugyeZ+9rHcKZpeQbx9yIBfuywWF0TPTW34wkONBlKWaTfSiYY48tquCHeU6zN4IwqiluFTlTVY6XuUFONzhmjzdUit0b0aDGaJOIhIE= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=oracle.com; spf=pass smtp.mailfrom=oracle.com; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b=XO5/QZn3; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b=VoJC9bZG; arc=fail smtp.client-ip=205.220.165.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Received: from pps.filterd (m0333521.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 43NFUOCS006565; Tue, 23 Apr 2024 17:49:33 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2023-11-20; bh=acDbPwF4lhFEQ97yb3HLNKTprs0UnLnXzyYYoG66gQw=; b=XO5/QZn3/aCmhQfyIgb2IngNFZKx1OF5tpcQE7d/kZd6e6RAMoQd1tKtQA/azPofw9Uo 8Yz2I7Lz1VeV+utKuVpB4OhAUl6LB/beBnja8Yhi7TNZ2N7V0Gm1GgTmYVbWA8uyYcsG 0zNt/qAMI38ZXF1qLTm2NBl9bSGXhk5C4Uq68wIiWUsFhbbKCQQDEHcl/BS+3py+4haK Ho+ArJW6JzmNBDwC6qoj+lIb94vTz4bi1huCr38uj6YJgTyBg6DbzhF9k8sA8luhefXs skIg/QLM8iZZgENBdi5wSCcr0+UvY0SYff4+r43TqmIJp6Dp4DdhGoO5alZq5P/C+wC5 Mw== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3xm4md6p1q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 23 Apr 2024 17:49:33 +0000 Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 43NGJEva035582; Tue, 23 Apr 2024 17:49:33 GMT Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2168.outbound.protection.outlook.com [104.47.55.168]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3xm457myju-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 23 Apr 2024 17:49:32 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MsVjHXN6lRsr3vaiEcdO7QRpHZrI7rlxyOonOul6hgGAxuunBtMatiPSc3ZK9rKo0ohDys3UZ+jmF/FFDPCmiM8pI7o2pnDaJIdb8WKdJG3mfB/b+Bt7W4uUQp4Y4brCyLnY161QLT/r7BP00VMhVT1P7gmyexc5MbbpOvwYyxuqpbdrcF0Jsneb/Yu2pITZlS3slcp/TktmLI39H7rqkDpF3ZuLnxc7wQP7nBM5UNBWneHTfA2V5cIdaklWPxaLb8ljxBvgTAt6u57E3v3357N7XXwkD2cFooce/EXBLlMiW0mJJimhr1uhh9bLS9ifxWBMH+fYPws0LD8Spg5/og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=acDbPwF4lhFEQ97yb3HLNKTprs0UnLnXzyYYoG66gQw=; b=IQZX/ZAdPYiQNXST7eY/5NZYEk4KLd6Xo61ptcuqqb5Ny/Wp6F26R5li1ebTjdItJQwGHrv3egYEBRwx8CP+3hlkwHMEjmo6J5tZUUeVFHC+VEeDMAaCBmZi/D5+3a7liaULERyo/edmIvyMp6D3C/aB5n4KXqOcYMy77kW077HVOJJhBhITkCSy8PXq2A0wOacAM8O0WgZdTDY52mlRCCmez/IyJUc7ewGxA1k/wCFBLeCFwJCuqREwi/SLjc9bF8tNvy7d1OOOYR+sAf+PweElgiXF1b9WrlaayScSwcGJL5kO4ltXS1LBGtjzkS1eXkNw/90v18P+nQWi09RyqA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=acDbPwF4lhFEQ97yb3HLNKTprs0UnLnXzyYYoG66gQw=; b=VoJC9bZGGfPKuZtHRmQR7Clvoe0KigJNMZU/B3+Md7j8a3isZzVYoGrJUM4EyqXb07grUnRmwHwNHiUT36dnLdIt4sGU5k0giqdUlX6y0tsFGtHDcDPiGr84xi7qimV1H1RN7eBz4mc6gX3xjhr3BeKuVa1XZT4DZOXEUg16Ll0= Received: from BY5PR10MB4257.namprd10.prod.outlook.com (2603:10b6:a03:211::21) by MN0PR10MB6005.namprd10.prod.outlook.com (2603:10b6:208:3cb::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.22; Tue, 23 Apr 2024 17:49:30 +0000 Received: from BY5PR10MB4257.namprd10.prod.outlook.com ([fe80::4c3a:47c2:806d:2e16]) by BY5PR10MB4257.namprd10.prod.outlook.com ([fe80::4c3a:47c2:806d:2e16%4]) with mapi id 15.20.7472.044; Tue, 23 Apr 2024 17:49:30 +0000 Message-ID: Date: Tue, 23 Apr 2024 10:49:25 -0700 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 1/3] NFSD: mark cl_cb_state as NFSD4_CB_DOWN if cl_cb_client is NULL To: Chuck Lever Cc: jlayton@kernel.org, linux-nfs@vger.kernel.org References: <1713841953-19594-1-git-send-email-dai.ngo@oracle.com> <1713841953-19594-2-git-send-email-dai.ngo@oracle.com> Content-Language: en-US From: Dai Ngo In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: MN2PR06CA0029.namprd06.prod.outlook.com (2603:10b6:208:23d::34) To BY5PR10MB4257.namprd10.prod.outlook.com (2603:10b6:a03:211::21) Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY5PR10MB4257:EE_|MN0PR10MB6005:EE_ X-MS-Office365-Filtering-Correlation-Id: f09d0fbe-7c3e-4f01-b443-08dc63bdb9d3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|366007|1800799015; X-Microsoft-Antispam-Message-Info: =?utf-8?B?YWpxdk90bnRuQmk2cmJXWUlhcysxcDZ1cGpLdXlDZzZkU3NMTTBrUGJad2R5?= =?utf-8?B?QzU4R2JOTDExNlFsQXM5Y1A1azNiNjlUMjNISEdaR1NHT0hsQXFJME4vZUla?= =?utf-8?B?Q2xxdTZBQUhndmtyckpSOWlWWkplNnBsS2x3RnhMK3FkeWkrMFp1TUtCcDZl?= =?utf-8?B?aDJkUk9VNjlSSDlWdHR0NGVmOE1OYlBmZkU0TVRQaStuWEtzYXdnMGZLRHNw?= =?utf-8?B?Nyt1aTI4OGFrTE1YWEluc3ZXeGtBaWpIcHcwcXU0MmdpZk5Fb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wRk8wNThucFh4MGorLy9tcU5WRWNBaHE4RlEzUjkzdzdIRlpH?= =?utf-8?B?Z0laRmZhRERsMlIrTzI5SDN2WCttQTk5RGVKajYrSERMK1J1ZmY4SnBPVEI4?= =?utf-8?B?YUlqcDRTN3o4bjQrcmNmeDdnU2pETFpacnJ6ZzRCRXBUREpHMlJYMi9oLzJU?= =?utf-8?B?Qnp5ZElHRDRGZng1S21sQk4vVzhEQXUzaEhOSlJlaFpFWi9pQ0szZ1NPdmtT?= =?utf-8?B?VkdoZC9DZXZoWU9Lam1WdzN1dm9PM0RQZUVVaDV4MVpqb0p3STVaeG1XaTFW?= =?utf-8?B?Ync0WmhGM201QlJDYmNLRHEyZGY5dDN2TGd4Z1RFRkFKYi9kZHd6MlZaQ21i?= =?utf-8?B?QmlZcXZBTzN3R1ZzbEh3Wks1SzFpZGlIdHBoaWdFUEl1cSs1bkpyRExJdkZq?= =?utf-8?B?bXRYaUkyTlVsMmRvRnVxNkhJNlVoZE50a0FDcWU2VGlsUnIxL1c0STJMcTNH?= =?utf-8?B?NTBVZlI2dm51Rkh3a1FKVTkzZXk1bzQyMHNJNUZJVnBuY0FDYXliUTJaemRw?= =?utf-8?B?cWJrSDdIMWx5Q0NDd3ZUSkxVUVNrQWZVVzlSUVRCaUZlZmFpdzBqNUR3PT0=?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR10MB4257.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(366007)(1800799015);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?TWNzaHIxSldZb3cyOVRlRDJHZWFJSWw2Q2pCWGdvK0kvdFZGa1R1aWRKRkg0?= =?utf-8?B?OFVLclo2emtMZWZkbkVJMTQvK3l5ZVdmN01oU3FSRGo5QW9MMkl1cXk1b0d6?= =?utf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2NJZmZrbSt5T01tTVNWVDdB?= =?utf-8?B?WUNDMDl1ek1EZUFuQjFwUm5qaGdqTFVTMGw4QnVSckNRQWdLekVyOW8za1o0?= =?utf-8?B?ZjA4V0w4c21qbE1nMWpudHNnWmREMENMMExUTWIrMUs5VkhxUXJQZ2VJdWV0?= =?utf-8?B?b3NFa0VMVXdVWk1kWG45d0Nrb0Ntc1pXcUREZ1gzbXlERExwVjdNaUhjV1hX?= =?utf-8?Q?SLnxRzOnu6r8pSiz5P8nV+/NB?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: nOzA7HZouImG9cLL1Fu3G+FIhvVEGjWeTlcVwJ9LCoqTD0xU/42oU+9VIYidIw2GXTyXKBVxX1dVWOdF5feBOFf/YPQ7MWi5JgZ2jfmSNUXHFH/fPpo0+Je55JsDtGHpDa3fPi6Qmja+9TLQBM7kooPBZph5aotomgg+P06ttY9aufv0zW+U5ScXVlNLcHsYKGPfp5esbIKC5PWEEGZ0c0GFInDQ8xbYHzjlwlExPum6VolIgQOzvgrVtFRgrV4yh+IYRndKP/L/n7CyIg17kzCNf0R0Uy9zJqoFvP+2amhMhVlp0KNLkPttP3pzubU6qapk7l+UTkDiWp5URvSiaJV+3IXEdPgzlkvdl0arP01ngaRDzhA3AUBBvKOnUl2kJe1imgTFKVKQ3AVhBYWYpqogadCh3lCgc2dF/jFB9F1pbiC7uIj1PK+wAoSYj3lC/iT17b4SJqgba2eOcYu/Ad9QTbr2KrR8G4zYADGxgwQvh4FDhQG4ND37lHaHTI/qvga3aKqU5u/1YpgMLqpFDPQK6kgWk/OFmbw79ZKo9HGFwwEEFbQuHHLM2UNsUvNN7scQgaKWNW4F960Qa1IwOn04sBVR8kEPsOkauPDBal4= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: f09d0fbe-7c3e-4f01-b443-08dc63bdb9d3 X-MS-Exchange-CrossTenant-AuthSource: BY5PR10MB4257.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Apr 2024 17:49:29.9208 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: PUxFJMvJOgXbps0HUo2BBGKm39HJ/AkbJmWntUnyMkgfzhjSjrPLb1hVs/Yk6DNEtAKdp79tC84bCc1q5hT9FQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR10MB6005 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1011,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-04-23_14,2024-04-23_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 mlxlogscore=999 bulkscore=0 mlxscore=0 suspectscore=0 adultscore=0 malwarescore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2404010000 definitions=main-2404230040 X-Proofpoint-ORIG-GUID: SjAAYtY5I6b2KnPrBh_09cqO-9bzU7o3 X-Proofpoint-GUID: SjAAYtY5I6b2KnPrBh_09cqO-9bzU7o3 On 4/23/24 6:41 AM, Chuck Lever wrote: > On Mon, Apr 22, 2024 at 08:12:31PM -0700, Dai Ngo wrote: >> In nfsd4_run_cb_work if the rpc_clnt for the back channel is no longer >> exists, the callback state in nfs4_client should be marked as NFSD4_CB_DOWN >> so the server can notify the client to establish a new back channel >> connection. >> >> Signed-off-by: Dai Ngo >> --- >> fs/nfsd/nfs4callback.c | 9 +++++++-- >> 1 file changed, 7 insertions(+), 2 deletions(-) >> >> diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c >> index cf87ace7a1b0..f8bb5ff2e9ac 100644 >> --- a/fs/nfsd/nfs4callback.c >> +++ b/fs/nfsd/nfs4callback.c >> @@ -1491,9 +1491,14 @@ nfsd4_run_cb_work(struct work_struct *work) >> >> clnt = clp->cl_cb_client; >> if (!clnt) { >> - if (test_bit(NFSD4_CLIENT_CB_KILL, &clp->cl_flags)) >> + if (test_bit(NFSD4_CLIENT_CB_KILL, &clp->cl_flags)) { >> nfsd41_destroy_cb(cb); >> - else { >> + clear_bit(NFSD4_CLIENT_CB_KILL, &clp->cl_flags); >> + >> + /* let client knows BC is down when it reconnects */ >> + clear_bit(NFSD4_CLIENT_CB_UPDATE, &clp->cl_flags); >> + nfsd4_mark_cb_down(clp); >> + } else { >> /* >> * XXX: Ideally, we could wait for the client to >> * reconnect, but I haven't figured out how > NFSD4_CLIENT_CB_KILL is for when the lease is getting expunged. It's > not supposed to be used when only the transport is closed. The reason NFSD4_CLIENT_CB_KILL needs to be set when the transport is closed is because of commit c1ccfcf1a9bf3. When the transport is closed, nfsd4_conn_lost is called which then calls nfsd4_probe_callback to set NFSD4_CLIENT_CB_UPDATE and schedule cl_cb_null work to activate the callback worker (nfsd4_run_cb_work) to do the update. Callback worker calls nfsd4_process_cb_update to do rpc_shutdown_client then clear cl_cb_client. When nfsd4_process_cb_update returns to nfsd4_run_cb_work, if cl_cb_client is NULL and NFSD4_CLIENT_CB_KILL not set then it re-queues the callback, causing an infinite loop. > Thus, > shouldn't you mark_cb_down in this arm, instead? I'm not clear what you mean here, the callback worker calls nfsd4_mark_cb_down after destroying the callback. > Even so, isn't the > backchannel already marked down when we get here? No, according to my testing. Without marking the back channel down the client does not re-establish the back channel when it reconnects. -Dai > >