Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6155511rwb; Tue, 22 Nov 2022 09:25:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf4E3JOjenxKB6/b/ewYhMW57FjJ+JAz5O354IkKGa7nR52Yx2z7tOIiIzpwVDQkfO7JK5vc X-Received: by 2002:a17:903:278b:b0:188:aa84:14 with SMTP id jw11-20020a170903278b00b00188aa840014mr4959499plb.17.1669137934759; Tue, 22 Nov 2022 09:25:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1669137934; cv=pass; d=google.com; s=arc-20160816; b=D/xqrizuu7JkJs7o5NwZGCA7KkhLJ2pIcQRXWlRPf/8TfR60EIDUB3HN8erD+STwKL rj9FmsL4ifOyiV5H/6j1Xh6gXRMpKe3xKZtmQvI8ljxRTs8PRVD5w87ye9zCIgyIlMQ7 bEXn024Z+UjFHzBmSAAY7AyJR/CLbIiCxZJl5UhyqGKe4EbiCN4kmG3Cop/q8zBoykfJ jeV83OO+AFOY5K23Q8wRzon29vMFBohyRA8InNgi5Fjf2NODSRvTImjXTSmqQxE2e7Y4 uy8IzTYX7n4GdF0Wr6+fYwf/71E8Qqd47YBpCj1Xpz67h9Zjda8Xw/DPMRQyyZdkeP02 j5jA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature:dkim-signature; bh=SCX2i+rWLGfNHrt0W6fhXSOuKwt+YhNS5y/DBCGblbc=; b=NyrndYvz0F0R+Pw7JNGRp4FK4U7aksOSzjWoxAQbddHPFCogRAuBXjqe8ANjLht5OI i+o5lkqkB4WYtMrowU1PBRrCbELcerFORWxQl5b9BHS67NowDAJkb4p6TfH8QoYuZ/zJ omNy43krFLSAH2uJumrrpq81DnbgMvUw1+RChHq1qyT2rgjcvZ8yVjUiB4wSsY1VZqPj D01hJkkIvJ/TYXv0hayAdg46dnudlQ6+f7cfY6mfgqGGvvWipU4Wm6jIriQlbptvc0tf +wCR35dLiqX1yiTU8ZM9LLVP4CEAIWVM2Yrm3a2n6BnNxCXI3CGStfy3i6imn4rp2XsA MaIg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2022-7-12 header.b=oDe3N7Oc; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=gnFoRpqY; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l6-20020a170903120600b00186c3afbd25si16401202plh.349.2022.11.22.09.25.22; Tue, 22 Nov 2022 09:25:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2022-7-12 header.b=oDe3N7Oc; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=gnFoRpqY; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234201AbiKVQ7z (ORCPT + 90 others); Tue, 22 Nov 2022 11:59:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234396AbiKVQ7q (ORCPT ); Tue, 22 Nov 2022 11:59:46 -0500 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B44B71F2C8; Tue, 22 Nov 2022 08:59:45 -0800 (PST) Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2AMGq4m1007899; Tue, 22 Nov 2022 16:59:29 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-2022-7-12; bh=SCX2i+rWLGfNHrt0W6fhXSOuKwt+YhNS5y/DBCGblbc=; b=oDe3N7Ocv/i/IIlqg/d08QFdi9L3RjlbllPXlvU3LW8xHdfe9Bx8b1AzUuB2XCT0Mxb4 DiI76X5CA3p6gtKeGAVkKRH79b4Sef0j3o+VzH0/Astkrb9a20UO7L+hhwRV7d+QXc+0 JSrJcky603vUGvGfxRtiHGjt/FGnXmi/6+UbfzYwNQmSUNooapcTta5Nlxmo5k/izqjU PoHD2nxI6lZcphv9lZVLhJgKWO55l56IPRU+iuEXI/zLFWn88x6mV+y45Po+BrNID5dC o19wIOHgI6EI3A5BAZhklAxKnHVVpISdUZhPK4nF8Ly9QBt8mOgaC0Sshy3u4JihWRvN wA== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3m0afr489d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 22 Nov 2022 16:59:28 +0000 Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 2AMG2sq0039490; Tue, 22 Nov 2022 16:58:51 GMT Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2175.outbound.protection.outlook.com [104.47.55.175]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3kxnkby3fg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 22 Nov 2022 16:58:51 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XDOrBRhobM4EIA8sHZfQkKPQCyhyDJJX2Q7zeVZr6fwWX7PJnZdeIEltIwybZ6OfpDnUWmRPIGFPq1tqq0qhvrPKN6W/xMnA7yhflMCNKQv1OkKa04ZgkHznsUAtp3v39hJm9KN3+H//Unq2kcNESirwU86UkTB2LNm+TzrClY7A4D9Mm2zKb4bTNM6KdK4Cl2nqoaBAmLoPgbc6U9NeleX7KD7OtmrKY0dtyYQQIgSu55e9umzfIszemF77k45iCL1/XyKE/8kjqNfWQbpgsOlorTZ9qGcTp2HKgC6LeCOehZYCz10ziuuTgwgeVg9sU9+AjV3D3ejM17xEODbk5g== 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=SCX2i+rWLGfNHrt0W6fhXSOuKwt+YhNS5y/DBCGblbc=; b=KUm/HVJYZrKbjqAF+bWDIRe1+gqBU6swEEdBZYtCZcTYt+R+s7HLj1UTXqvYWolaBwRwCLCMjQKTXYcP700CAyUyqIS/XQcKyidk4VkHmCZC3j3PSATJdiYTpcT40+H2UBCCrvU3XFeFgoSuFcmwuo+frAKB5eJscjNBC1P/8ZjWxgntmVGQuUlTllM0hKny63U4mOe/U6HhIP31IEYhKxSKVBzsXXGvw2VRx+0CUL9PD1XI+7pyFP983xHCCA+zvsHcobw2WgZimzbiLV9a/u6nfge32je+6kz8wkLz3qCUlQhmTTavNBoJgKAqXAh+xUqVkqTPxNiIay2SDLKyeg== 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=SCX2i+rWLGfNHrt0W6fhXSOuKwt+YhNS5y/DBCGblbc=; b=gnFoRpqYtyI/DV+BK2Vk95GonL6T01iwGrxzgb8A83E6yRdb/qRPp4Ta75HWeGS0sX59p2upPOq9o9ki6P6qUYjZ8hHh1qYF1lj4oNKPGV3i/bkQtrgSBDl9rGE30rRXCpH74FNEmyRR6mErf5M8yCXl4BwZes3OV58byhnWe/I= Received: from DM5PR10MB1466.namprd10.prod.outlook.com (2603:10b6:3:b::7) by SA1PR10MB6343.namprd10.prod.outlook.com (2603:10b6:806:256::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5834.15; Tue, 22 Nov 2022 16:58:50 +0000 Received: from DM5PR10MB1466.namprd10.prod.outlook.com ([fe80::19f7:e081:85b4:c5df]) by DM5PR10MB1466.namprd10.prod.outlook.com ([fe80::19f7:e081:85b4:c5df%7]) with mapi id 15.20.5834.015; Tue, 22 Nov 2022 16:58:49 +0000 Message-ID: <11003745-2b2d-30cf-bf87-798f5175ae09@oracle.com> Date: Tue, 22 Nov 2022 10:58:48 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH] scsi:iscsi: Record session's startup mode in kernel Content-Language: en-US To: Wenchao Hao , Lee Duncan , Chris Leech , "James E . J . Bottomley" , "Martin K . Petersen" , open-iscsi@googlegroups.com, linux-scsi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, liuzhiqiang26@huawei.com, linfeilong@huawei.com References: <20221122213040.4128105-1-haowenchao@huawei.com> From: Mike Christie In-Reply-To: <20221122213040.4128105-1-haowenchao@huawei.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: CH2PR15CA0020.namprd15.prod.outlook.com (2603:10b6:610:51::30) To DM5PR10MB1466.namprd10.prod.outlook.com (2603:10b6:3:b::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM5PR10MB1466:EE_|SA1PR10MB6343:EE_ X-MS-Office365-Filtering-Correlation-Id: f65de51f-d6f9-4676-a4a3-08daccaad3de X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /GsveVFjfiRXpI78nNyDyW2ZRN1sZbGCej8A4sHUoKObuMHHT6vnHWraGFS9tMoNzekjaJnYhZgzMy5ln1iDf/WOPehpyCjZoEZZS4tbLmBbcTdrXpSZ6rPpoczCkaWJQLVfsohsTnJJLtX4y/SY1gghPae9gLhAzbr6u8qNb9E03PHaAazJIhglVhlMEa0y4isSNmfOq5Om9FOV1khuZm4n/wTf7wBnFUBtNsg7RNmPdMKc052bBuX6CGXlce+Wy3QcxMcw8DMl7mF4x2Ln1Aq4SrrTaQZA8IZbForQi8MZCB/3vXXT32vYTRZI/Uy1K/k3THLdOYP9/jAdccNRQkhe9wjCABISssJiUBWTQNPH2nM+IsG5NGYqWZw6g4ADBh81M7DRNv2/Iz4CLHnwOOQ09lXsvgKzHQQC6j/75IaMa2GITlZfBqnoGmTKj25tzzFSMKOZ5Zsw9XsWUFcv++OR/XFZbM9pbH7H7iA90uHJkwzVICSMX++5sGV2GQIzL1QeLVwPWcN0xsVWSJBAsiYEUo8HCkEsnSlR1o6OuXJQY43IdqkwZVeNbTWq58glIhSDnWSbow2TWG9jAFK+GdQshSalZ/HyUg5Xz2tNa6Tuw/AQVx3rHl/TemZS0uUlzbmxGWIeusUxEMhkuQHftns0UtMYAWFPYNBq9kf4FMhz+yojv8owuCINRHm7QQoaifL83KnXaWnQiFSRnXMCkRRBAI8Vr8M9D83+UEjbslM= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM5PR10MB1466.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(346002)(376002)(136003)(39860400002)(366004)(396003)(451199015)(2906002)(36756003)(83380400001)(4744005)(186003)(31686004)(38100700002)(2616005)(4326008)(6512007)(6506007)(26005)(53546011)(478600001)(6486002)(66476007)(110136005)(8936002)(41300700001)(8676002)(66556008)(5660300002)(316002)(66946007)(86362001)(31696002)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?NUdFYWhwUFd3QTFmdExSaGpFbVVHS3hTTGduZUhGNGlUeXB3SHZPVjFGOEsw?= =?utf-8?B?cmczMGZMM2JBYUJVOHAxUkZ2b0Z3UlEvWUxsVlBseFJhem1Rd0paTVNpWVZG?= =?utf-8?B?cWxtcUQyRXRucEdCWU9yRllQT0s5b2ExNTArL1pwRVF0ZWlkZ1NkTjgvUDBT?= =?utf-8?B?aTJCVnczWHpySSttSUVFdkJaOHprRWpaSWFXWUx5WXFvbm9SNGJEWmlqL3A0?= =?utf-8?B?dXY4SU8vd1N4dVBHTUwrNnUyaTVDRkJQR2NiSDlOUDM0azN2RVRoMVFHbDMx?= =?utf-8?B?dVJjZmtVeXN2ZGNBNG4xRkZ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?azV0Mkk2Z3FyM00yazZYazNtTE5RQXJTSy8vbjFjZlAzZWwxcTg5dkd0NmtF?= =?utf-8?B?cXdGdzBMNnZJT1JWQ0hSMWRUYmUrKzV0OVErVll6R1g1U3ZpSlQ5ZVp3Z3hu?= =?utf-8?B?ZHhOVEFPWmNoSDJsaStOcWJJSlRocDdjb1hqQnIvcVJiNHg3SWdKMkc4TnU1?= =?utf-8?B?MTM1ckJmTUlGcjh5WWp1Qmd1ZUVadEgrK2JrUGxNVHdmZW5PSUphTEF2S0Jm?= =?utf-8?B?eWtrTHd4QlliU1NpcHVuVmJDRThnSUNhMTVWeERHSHl1TEJvZXlDZGNmSGdY?= =?utf-8?B?Ris4Z21uOGJGSmQ3WHBtRW10c3dZQlF2N0h4cmx4TlRoSGFLODdkbFVRRnFN?= =?utf-8?B?REViYmhsN3RoNXhHelBobU45VEVORHFZbW1FQSswekNVQkhCUHVzMFJQR1Fk?= =?utf-8?B?dnNjR25RendCUHJqV3FWaWU4ZFAxZ3Z0R1F3RHAwYWtiTnBaZ3JmYXd5UVdm?= =?utf-8?B?N2luVjdUZDRxa2pWcENobWg0UmVValZ0eXl2NFFnSHF1eDFhVEx4Wlp0SGhP?= =?utf-8?B?WHdBcjdqbHdwbXRmSS9LQ29XM1RSM3AzN1pNVXluSHdDUHVQeTliVXhzUTFr?= =?utf-8?B?OElaQjZYbEg0eDMrNW84L2RnL0tLUFdtSU5CaUlxZUdlRzVEZXp3UkhYb0tv?= =?utf-8?B?Q3d0Q0M3VG93d2c9PQ==?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: f65de51f-d6f9-4676-a4a3-08daccaad3de X-MS-Exchange-CrossTenant-AuthSource: DM5PR10MB1466.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Nov 2022 16:58:49.8686 (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: g/NTluLSaxkJqsmzzjYACP57lHrAaTnQLXACoj3uilBQ7on8zwcMzMW+yPRIYH+Yl2kz9qB6DvjMYQcRIRHYqwIo+c/CsCQ9BR1FVxoonNo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR10MB6343 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-22_11,2022-11-18_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 bulkscore=0 phishscore=0 adultscore=0 suspectscore=0 mlxscore=0 mlxlogscore=999 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211220130 X-Proofpoint-GUID: NaFbGHmtkhaP6pGMW6DtbUszVChYDSXd X-Proofpoint-ORIG-GUID: NaFbGHmtkhaP6pGMW6DtbUszVChYDSXd X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/22/22 3:30 PM, Wenchao Hao wrote: > There are 3 iscsi session's startup mode which are onboot, manual and > automatic. We can boot from iSCSI disks with help of dracut's service > in initrd, which would set node's startup mode to onboot, then create > iSCSI sessions. > > While the configure of onboot mode is recorded in file of initrd stage > and would be lost when switch to rootfs. Even if we update the startup > mode to onboot by hand after switch to rootfs, it is possible that the > configure would be covered by another discovery command. > > root would be mounted on iSCSI disks when boot from iSCSI disks, if the > sessions is logged out, the related disks would be removed, which would > cause the whole system halt. The userspace tools check for this already don't they? Running iscsiadm on the root disk returns a failure and message about it being in use. Userspace can check the session's disks and see if they are mounted and what they are being used for.