Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp20789pxk; Tue, 15 Sep 2020 18:55:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJF9+a8XMnOiWZwDQj+OXNZqNL+IBHk1qLobT2NJz+jA4vgvqePmOGok3dpH1JUr6H4+q1 X-Received: by 2002:a05:6402:44e:: with SMTP id p14mr25812495edw.1.1600221305210; Tue, 15 Sep 2020 18:55:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600221305; cv=none; d=google.com; s=arc-20160816; b=oNtp4QYPncAjGfX0OCaxY0vil3znoTTkxgC1yF+Sqas0Nxx4C24lbqvWnkJLikpmMT Qn9W3HLuElYHEdRYV8fJtBcGhx+SbHoSjnxbBPhrzvphF3dsa12grdGYDVoZBoZY6/Wt teT1/tnZUjKSbyRh6fL4WEqtwr4gpIYgSjJJbGPUefGQYyU0fatLeD3pqdmu7o376o23 GA3TlzeWJlofZ5tslV39oEhI9cMJkrB/6c1Q74pmXxm5B8H82G/ohOiBd2N1m4ViumyM PzJ1CakdihWgP/5VrCe9FWXEE6frtOmzzddlxynSGnbcVAv8H6yUfSHYK0UDY2JJiS+3 miqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:in-reply-to:date:references :message-id:organization:from:subject:cc:to:dkim-signature; bh=ECh2MOTmhtTfYZyfuT4yJTL2a4p1wqNmCrWKl3fPcS8=; b=vJ/iab5w0fIurmKsS3RyP6l86/nKjWY5HXn3pkfnrpzYR6+ilzO8JtAbxKiqZ8haCZ baYfTSN5aYatWxJwIpIwA8leSLwt+1uRnbHqPlCVhUZQ2IIjoLevLKgWGoKYG+AjuTqf k1D6qcb7YN+oAFbcT5JBvKjuUpy6nDtWC5f+hmQQW4GsUkzUCw6WA4CXIbXfpg5KkJ8h mqUyyWgPVWmc3NpwvLTCshK1PowGG/MXQYQbHtZ3BQnKvgMs/8DsaqxEJ7FOe/IR3Ci1 iOlGP1RkkV4cVrEyuIVnZFZF225U9brggoInLHcSUXUwobhRTbnvbMO2eqclPZRD0K5o rpaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=zTLFMYai; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z12si9877483eju.152.2020.09.15.18.54.34; Tue, 15 Sep 2020 18:55:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=zTLFMYai; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726222AbgIPBx1 (ORCPT + 99 others); Tue, 15 Sep 2020 21:53:27 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:36240 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726023AbgIPBxX (ORCPT ); Tue, 15 Sep 2020 21:53:23 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 08G1molB146115; Wed, 16 Sep 2020 01:52:21 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=to : cc : subject : from : message-id : references : date : in-reply-to : mime-version : content-type; s=corp-2020-01-29; bh=ECh2MOTmhtTfYZyfuT4yJTL2a4p1wqNmCrWKl3fPcS8=; b=zTLFMYai5ScmwCtq04/oHxEbvGXr6UFvjNNnNUO4jqd6neMj2JnIlyDW2S3sPJ/WapxD w9puNsCx9PGUDgTGQxRzMD9y27qiKq3naFpDriZf7pgH6mw2pMhd3M+zi40/BqKO9iNc EvfrV4iF2JMGDu59P33Dc0RQKpvQ6WzjSGv+vUJV2zcR+e0iW4/JjAeNy/Td4LeTk9TD C6PHQQxgyxqASo/rCp9Ru8IaDy7rdkmczuix5Ei7nPRWhGc7Xx9suytKNBlPMLegBlfX r+wtQMdfHpCmlzOZMZ3+g3V6UACJaTLB4tbdogN5O6XtRVD7ZT3rJebAyUjZOP+a9YgH Eg== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by aserp2120.oracle.com with ESMTP id 33gp9m8awk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 16 Sep 2020 01:52:21 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 08G1ohhq170487; Wed, 16 Sep 2020 01:52:20 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userp3030.oracle.com with ESMTP id 33h890e9hu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 16 Sep 2020 01:52:20 +0000 Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 08G1qIvQ019662; Wed, 16 Sep 2020 01:52:18 GMT Received: from ca-mkp.ca.oracle.com (/10.159.214.123) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 16 Sep 2020 01:52:18 +0000 To: Matej Genci Cc: "linux-kernel@vger.kernel.org" , "mst@redhat.com" , "jasowang@redhat.com" , "pbonzini@redhat.com" , "stefanha@redhat.com" , "jejb@linux.ibm.com" , "martin.petersen@oracle.com" , "virtualization@lists.linux-foundation.org" , "linux-scsi@vger.kernel.org" , Felipe Franciosi Subject: Re: [PATCH] Rescan the entire target on transport reset when LUN is 0 From: "Martin K. Petersen" Organization: Oracle Corporation Message-ID: References: Date: Tue, 15 Sep 2020 21:52:15 -0400 In-Reply-To: (Matej Genci's message of "Fri, 28 Aug 2020 12:21:35 +0000") MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9745 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 spamscore=0 adultscore=0 suspectscore=1 mlxscore=0 bulkscore=0 mlxlogscore=999 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009160010 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9745 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 mlxlogscore=996 adultscore=0 malwarescore=0 clxscore=1011 lowpriorityscore=0 phishscore=0 spamscore=0 priorityscore=1501 suspectscore=1 impostorscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009160010 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Matej, > This change introduces the behaviour described above by scanning the > entire scsi target when LUN is set to 0. This is both a functional and a > performance fix. It aligns the driver with the spec and allows control > planes to hotplug targets with large numbers of LUNs without having to > request a RESCAN for each one of them. Applied to 5.10/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering