From patchwork Fri Jun 3 06:55:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Christie X-Patchwork-Id: 12868718 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 us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DD6EBC43334 for ; Fri, 3 Jun 2022 07:18:05 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-668-J5n5BUzJMJylQ5lXqw2olw-1; Fri, 03 Jun 2022 03:18:01 -0400 X-MC-Unique: J5n5BUzJMJylQ5lXqw2olw-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 5012218A652D; Fri, 3 Jun 2022 07:18:00 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 211141410DDB; Fri, 3 Jun 2022 07:17:58 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id D5DB4194704E; Fri, 3 Jun 2022 07:17:57 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 809541947040 for ; Fri, 3 Jun 2022 06:57:47 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 720071400C2C; Fri, 3 Jun 2022 06:57:47 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast10.extmail.prod.ext.rdu2.redhat.com [10.11.55.26]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6D6041415100 for ; Fri, 3 Jun 2022 06:57:47 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4F67D1C05AB3 for ; Fri, 3 Jun 2022 06:57:47 +0000 (UTC) Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-539-Y4S3G0fYPIqk-D5XOD6TbA-1; Fri, 03 Jun 2022 02:57:45 -0400 X-MC-Unique: Y4S3G0fYPIqk-D5XOD6TbA-1 Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 2534e53E011580; Fri, 3 Jun 2022 06:56:39 GMT Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3gbc6xc595-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 03 Jun 2022 06:56:30 +0000 Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.16.1.2/8.16.1.2) with SMTP id 2536q0XR027501; Fri, 3 Jun 2022 06:55:47 GMT Received: from nam04-dm6-obe.outbound.protection.outlook.com (mail-dm6nam04lp2048.outbound.protection.outlook.com [104.47.73.48]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com with ESMTP id 3gc8k25ntm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 03 Jun 2022 06:55:47 +0000 Received: from DM5PR10MB1466.namprd10.prod.outlook.com (2603:10b6:3:b::7) by BYAPR10MB2789.namprd10.prod.outlook.com (2603:10b6:a03:82::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5293.19; Fri, 3 Jun 2022 06:55:45 +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.5293.019; Fri, 3 Jun 2022 06:55:45 +0000 From: Mike Christie To: linux-block@vger.kernel.org, dm-devel@redhat.com, snitzer@kernel.org, hch@lst.de, axboe@kernel.dk, martin.petersen@oracle.com, james.bottomley@hansenpartnership.com, linux-scsi@vger.kernel.org, target-devel@vger.kernel.org Date: Fri, 3 Jun 2022 01:55:25 -0500 Message-Id: <20220603065536.5641-1-michael.christie@oracle.com> X-ClientProxiedBy: DM5PR16CA0012.namprd16.prod.outlook.com (2603:10b6:3:c0::22) 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: 111f33ba-bfcc-43cb-04c8-08da452e1506 X-MS-TrafficTypeDiagnostic: BYAPR10MB2789: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: yRX5ObvkWymcVW77kj5guOAOmW9CgylTQOb0zYu449XiyJugOsKeru4yS3qpu4v3DLWWQb5n7PhwwpwUhMdwp48/LB92Io7Ntlz/Pg3c54GsJnY0H3zHJwgfq4N5UpBS1iLmtWcc4/OG8a15iNMExN/UaGKwpEOVzZYiVY3qvF3GQBPyW/cedcAn8Emh6aJ8KHUWlQaEZvRi/iKi4DUt9t1CEKlBwwzwNBVIKO6Zs/QB2TZbZYSQzZkfOLA2zpDxQzkIuIPzL2SJRDncYxHauvi86v0DHw9um0lYPKD0YLjZg9YbPiOqJZsjjSxol2goj2rJrYgqyGZ75s3vz1KUSyyK81l6VUt54m+9Ke1a8dz9qfAvjKVzgocNc4rkJEQeUme+WlqwI9AZyT0TIKnd7OHYMgf0tRxmVXVxbi13qhGIieFNZOGIhVx6h8n3aP/ss0qTsFnFzKezo+BOtncZxdKnfB2o4Qg6AXSxwmkGHZZX1P3bOMROX4L06l2AJck1wmiv4dNGKQD6iB4kgV7qrEz8mKiS7n5IJewfoNcBEVhxV2q4PkKic5cHI2nwP2dJ28hUMBGzABAwzjflHM+8imKrNFNM+0CXgBgbzo8R8B3xbaZtg9CA1gGW0HMyIR/B4zn67kLro5Crd/0YvU9JBWbQUrhTLx14KW/yJBs9apS1pQxzSU/2OMp30wiKCYLWE7a+he57NTieJAT8UDHU6Q== 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:(13230001)(366004)(66946007)(8676002)(38350700002)(38100700002)(66476007)(66556008)(86362001)(83380400001)(36756003)(8936002)(6486002)(2616005)(316002)(5660300002)(1076003)(6512007)(26005)(2906002)(6506007)(52116002)(186003)(6666004)(508600001); DIR:OUT; SFP:1101 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Tj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3nJ1KoB4EBNqZAk6/1TE+xbcbZIL++cjqxBBcxGsPTf1JNjuFETjGbmQ8gZNZ2k3vuRv8AOB4SzLORfEM+f64StB0G0GaIrAsN68zZWY9YqvRzFwG6/FGDX+g1A25iWtap8LY9uH16mUlmfn4Cjc/wvoyZLwdItk2rjWEJZ06WDYWET1cbDovZDK3Hs79czG4nTT1nrY6+LEIshQAMQ3V1vWS1X7G3JPyWhjXULAjFBbmf2qCSLSW2Ww0DjuHpawMIbAqhYe/926VVkmapxLUiCnOWpGU3UPTB7oZKkNXvU+5mzSquslCKzATR6IP8LZ2+zV5Hg5Ezit3omUKLX07BeS3BviPdoN9KAedNzKaIW3HVMbRe3aVStBzaKnh6PPK3FDzChRsYl1n3nLN7NFP2bvmTJHlkuikGfZNFdi6MrlxSM2bdNQ+E3CPYsGXOtcPsdOdNLexKXm0dB8hdvHvE2i55R3sx9mYLNdrM2Mwzfi8QsuJP7zCDmOHP2szh7Yc8/cxt6bcEPpxTSRF+2IefBMttQJj1r4ugze7xhHGQVD/ykX2SiUlrRhD95FAC3kz/QwNcjX2YfDMQYx0fLaXnteHxKczxnCgzTiuxMWoG15aQteUwL/x2Zxg+CG25WuTTfcWkvu/Q1BDFTw30BZ5s32V0uYhzsffT3DBy14sjfW6OdGhKQc0= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 111f33ba-bfcc-43cb-04c8-08da452e1506 X-MS-Exchange-CrossTenant-AuthSource: DM5PR10MB1466.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jun 2022 06:55:45.2999 (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: un/eM7IHFFYQDRWFoCP5h9rz4rF2dq5sMzmnYTQFtEAIV5KsFvmtvM7EPnBq0B8z6GFw5keaG/LnfXqcCUvrLsQCST58ItOU7YM+0GNeWHM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR10MB2789 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.517, 18.0.874 definitions=2022-06-03_02:2022-06-02, 2022-06-03 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=844 mlxscore=0 suspectscore=0 spamscore=0 phishscore=0 malwarescore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2204290000 definitions=main-2206030029 X-Proofpoint-GUID: fY7ER0yNVY8Mn_58AC0cgYK8T9G9hRQC X-Proofpoint-ORIG-GUID: fY7ER0yNVY8Mn_58AC0cgYK8T9G9hRQC X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 2.85 on 10.11.54.7 X-Mailman-Approved-At: Fri, 03 Jun 2022 07:17:56 +0000 Subject: [dm-devel] [PATCH 0/8] Use block pr_ops in LIO X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dm-devel-bounces@redhat.com Sender: "dm-devel" X-Scanned-By: MIMEDefang 2.85 on 10.11.54.7 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dm-devel-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com The following patches were built over Linus's tree. They allow us to use the block pr_ops with LIO's target_core_iblock module to support cluster applications in VMs. Currently, to use something like windows clustering in VMs with LIO and vhost-scsi, you have to use tcmu or pscsi or use a cluster aware FS/framework for the LIO pr file. Setting up a cluster FS/framework is pain and waste when your real backend device is already a distributed device, and pscsi and tcmu are nice for specific use cases, but iblock gives you the best performance and allows you to use stacked devices like dm-multipath. So these patches allow iblock to work like pscsi/tcmu where they can pass a PR command to the backend module. And then iblock will use the pr_ops to pass the PR command to the real devices similar to what we do for unmap today. Note that this is patchset does not attempt to support every PR SCSI feature in iblock. It has the same limitations as tcmu and pscsi where you can have a single I_T nexus per device and only supports what is needed for windows clustering right now. --- dm-devel mailing list dm-devel@redhat.com https://listman.redhat.com/mailman/listinfo/dm-devel