From patchwork Fri Jun 17 03:04:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Christie X-Patchwork-Id: 12885053 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4A26DC433EF for ; Fri, 17 Jun 2022 03:04:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379933AbiFQDEx (ORCPT ); Thu, 16 Jun 2022 23:04:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379503AbiFQDEw (ORCPT ); Thu, 16 Jun 2022 23:04:52 -0400 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C8BD66229; Thu, 16 Jun 2022 20:04:52 -0700 (PDT) Received: from pps.filterd (m0246627.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 25H0XvBr026644; Fri, 17 Jun 2022 03:04:51 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : content-transfer-encoding : content-type : mime-version; s=corp-2021-07-09; bh=VQnLgU1BKMwgAsw7P2EzBvvxUtzc60ML77DoTWd+Ibk=; b=UMsCUtPvWMr3FdhwruZaDVaY1eEnRkjNFPA7G8jFb+72bY++Q0Il9p/etfo2sggnxmzx FJ8YnQHrWM/zVhBM/vPafWPiSRO+7ANwZbiaDocWf/ZPikke9tDLGfSWuZjjW58p2wg/ tjwJSZv66rr//yy9uQdTeXYwwi3s3oPJJXdM5Bkcabpel/f1Dh/PaJhE03wfawzUrMX/ EVFQrC8AZdukSeILaO1y91oHUYYrmOe7+zkE6g3Kwe3afx0JimxfL10TJvHKcE0GTBIE B04zMU/6Q3b13idtuciViscV28d0nEzXt2C/0bjKdwiM+qhlxE7+jcqkjsJgHLbVXgov +Q== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3gmhn0mubk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 17 Jun 2022 03:04:51 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.16.1.2/8.16.1.2) with SMTP id 25H2tlK8019489; Fri, 17 Jun 2022 03:04:49 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2048.outbound.protection.outlook.com [104.47.66.48]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com with ESMTP id 3gpqwcq8hg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 17 Jun 2022 03:04:49 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=exyMjfLpGLMIw69U4qGgWbZMLvCJzEjmYy9Lz9eH0UBQeV5uKiokbanFuwb4YgBvlotjGSJ8zpJM9eWDi0pclSbJzUksYZsukzkKSoPWJgQYHrM7aCfnRhVG0h/gvh4SqWvSO8L9MTNzv+ndFKz1IIu/Fl97dI4+zpAjX+uRFud53LrBlDanC2g9m+1b06LMn0mABFGAMpx03bD7/fBu0qWLAF7BEx7csdoPFkvgUBXABsuc5pgxNQJ1NuJ6MAhUyAEiQS8BHeoN/LPaMdmfaTtVO1rYVTuB4o2Kk7Vgun7p2tTKrLj81Iw79sxaJZCQH5Xk3uf7Cv4zMIexEJ6xqg== 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=VQnLgU1BKMwgAsw7P2EzBvvxUtzc60ML77DoTWd+Ibk=; b=RkuKcdff9ja0nmcifR37tV35kFwMH5FPtbMzLXYmVXHs0fMXmMqK1+Gp+iRs/VQM/K0N7y/2/TXm+aNNvvVZWAYIxtenOnYuhg3iq0Bh6VzWa9DqCUvOCtjK1df5iklgelRLMlcYYMwHzimnoNyGHqNJ0N+/XnFCSfAE6mFURpIK6jlEzWXMoft1vK1ep9D6MzdUHFC9+P+uGfxeCreuId8TIvWvvsgr1ZomUjX/ywnQ04VMSNOBLyG6kRMMo6QfrkVEYeF2U+tbEUe8AqV59neZsQjLhnvdcopnqUhv9tjnXLu30GVzfv59zdjAmEdeRTNzA98aVfU7sM58yvfF0Q== 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=VQnLgU1BKMwgAsw7P2EzBvvxUtzc60ML77DoTWd+Ibk=; b=aQ5pcuB/AZ52Sp+X99p/MEv/28cHBnb4JBwkzgv55rH5GbgqTG9FNQerbsYHghxIAN/eqJhf/pM9mctYBQboAOnLXCCVJoHYK4hhPLqG8zAj1EEoaddTIOkBlav3jqecF4d2j2ijkZeIUY80fnkxcOWobOI1Ymx85Q5mkR+ta3w= Received: from DM5PR10MB1466.namprd10.prod.outlook.com (2603:10b6:3:b::7) by MWHPR10MB1280.namprd10.prod.outlook.com (2603:10b6:301:8::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.17; Fri, 17 Jun 2022 03:04:47 +0000 Received: from DM5PR10MB1466.namprd10.prod.outlook.com ([fe80::f81d:b8ef:c5a4:9c9b]) by DM5PR10MB1466.namprd10.prod.outlook.com ([fe80::f81d:b8ef:c5a4:9c9b%3]) with mapi id 15.20.5332.016; Fri, 17 Jun 2022 03:04:47 +0000 From: Mike Christie To: martin.petersen@oracle.com, james.bottomley@hansenpartnership.com, linux-scsi@vger.kernel.org, target-devel@vger.kernel.org Subject: [PATCH 0/4] target unmap/writespace fixes and enhancements Date: Thu, 16 Jun 2022 22:04:35 -0500 Message-Id: <20220617030440.116427-1-michael.christie@oracle.com> X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: DM5PR20CA0034.namprd20.prod.outlook.com (2603:10b6:3:13d::20) To DM5PR10MB1466.namprd10.prod.outlook.com (2603:10b6:3:b::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 79ab4f0d-0b4a-497f-6510-08da500e22f7 X-MS-TrafficTypeDiagnostic: MWHPR10MB1280:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: SSTzqh988veWfvet/WgZR+6jAiSsZv+PCdoOsbqOMUH7i0NiNm5SliI2T0xudKOcet8kK9k1aLoRiq7IS9Lpv5oVFzQo4gEBqto1nPHGd52oAdx6ThQwMbf2TJ+RYTEAkau/NdDQPrJpoA7+B22ta6B54fb1zqjOZxu7nWc4ZMv/mBxPkxnX9vroli2dHnlDPh2Wfvt84syR8PQZpdSh9QQWVK2Kjx1YurweTbJmt6DmpWw5Rfjer4lyvda2RWjkSgi5k5076IyGvfvSWgepWujoeXhSgOECUaTry0g3Cvat6kbhSrTkds6WiqYDDyXUGQDlUDfZoiSDMKNiou3AItY0YKpemRlUJcz9te3j/8cdQTJb9VL6g2+dzx3+Y9gQMyCDF5IqTlu3yQBSma/BupHXA4NdiHtEIp3PIoi+rykmsPF/MB93Fy00O7uSLKMvp/gWlXyYBbWSqchiEWtrfG3gozvu3wQ+qFtvjolWBCw1T7HgiIWh3Z8/eXI97U15HErTe6t1PcKaBhmdm1Ua4DtDZLu6px1ujtjebw7FRankse5rzb+XTUHf8Es81OMb89CoWjullzjznewuZ6D4DJEjo4J/QbuD69UUc5sEZrvK5IywSYClgl8uey0WV4VWBCdWkV3CLSSoLmhbpSEbuJedta+fkmPdjWkCuWyvlIgtwEIHoyB+0Ve+s9DfPfp9HEoxlyiP3JpGJ24qoNv1uQ== 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:(13230016)(366004)(8936002)(6666004)(558084003)(6506007)(6486002)(6512007)(508600001)(186003)(26005)(66946007)(52116002)(38100700002)(2906002)(38350700002)(1076003)(86362001)(66556008)(36756003)(8676002)(2616005)(316002)(66476007)(5660300002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: JcBqlpp4fd/oaDcERspChvSHjuJ4pquW41ZVxi5/jlORW6/IZqxy604W2y+I5yB5AwN1ZP63AVsgMqlYS81/uiWMRC0TSSFyl6mdVliSTuK8NbvHA6Or9yhfcwlPR5zmpVpszC06sOojnQIoSQkm3KRPxMeLwvcYRFwJ6TIN93PrxMtHA3S3VLvYaaZ5geYrwwtzKV3N+lmhSuaMyNzcTDSI83aDjy/gmeJEfTUOF+rlxM0dUWX3aH4VIb9q/0LY/tsUSLJchOMS4G01QfAx9MNj8LjBF5JXd40cD8hTgZiLh/5d5yihksHowTmiL+CKp5lK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0mHd2FDHrkHIh2pCr0Yegi6KtwAd8k2Jg1Rjo+YTf7mFZ8D7LtoGiIQfWOB6la5Y6fVSdgygs+Gl1FRG5sc/qfau3hyYj7VNPLmc86alrqdoJ3oryW/WMaKURmHSCFmI0CTdZFMlPHw0BgHeIcVvChIzeCNdyeJkOhevVGj3CL6dtciO6oZZKX5pOLcpKjYcCxU29CdFP4JM9CTU3+xVFIhZri+NnqVFh7kywIaRKPZ5ZzLFRJYBUSdiyskn9E4Tzp87PnN2ubiS/7aBhtcbdMXI0/SXb/xZCbDedcWl5f9+XtmpI5YFtE7mxaDBUy2H7vyaQQmdezg/RApYKV6hce21sY4t+2FPKbfPLBqrEIbk= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 79ab4f0d-0b4a-497f-6510-08da500e22f7 X-MS-Exchange-CrossTenant-AuthSource: DM5PR10MB1466.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2022 03:04:47.4624 (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: YFLsWnXVxewrFC1+3E+99UOrPFHp96akh3UQ/HtnhEe/mx51Hp1rGYvrQF/QfwPmDRH0Kw8NIvvWj6X1H/2N8CT+6wYRRaevxZSgoWW+Gpg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR10MB1280 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.517,18.0.883 definitions=2022-06-17_02:2022-06-16,2022-06-17 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 malwarescore=0 adultscore=0 mlxlogscore=853 phishscore=0 mlxscore=0 bulkscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2204290000 definitions=main-2206170012 X-Proofpoint-GUID: DfdeF0r0761Kfyt5vIFf1q33UbZXIPjD X-Proofpoint-ORIG-GUID: DfdeF0r0761Kfyt5vIFf1q33UbZXIPjD Precedence: bulk List-ID: X-Mailing-List: target-devel@vger.kernel.org The following patches were made over Linus's tree. The fix a crash that's hit when using writesame with the NDOB bit, and allow uses to config unmap after it's been setup in LIO.