Message ID | 20220803162857.27770-42-d.bogdanov@yadro.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-scsi-owner@kernel.org> 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 EFAEEC19F2D for <linux-scsi@archiver.kernel.org>; Wed, 3 Aug 2022 16:31:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236041AbiHCQby (ORCPT <rfc822;linux-scsi@archiver.kernel.org>); Wed, 3 Aug 2022 12:31:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238563AbiHCQaj (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Wed, 3 Aug 2022 12:30:39 -0400 Received: from mta-01.yadro.com (mta-02.yadro.com [89.207.88.252]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A708C4F1A4; Wed, 3 Aug 2022 09:30:07 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mta-01.yadro.com (Postfix) with ESMTP id 047C241374; Wed, 3 Aug 2022 16:30:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yadro.com; h= content-type:content-type:content-transfer-encoding:mime-version :references:in-reply-to:x-mailer:message-id:date:date:subject :subject:from:from:received:received:received:received; s= mta-01; t=1659544204; x=1661358605; bh=jvuc0gW1ZdHDie47Gs0pEbRvc vgWdNhP9Gt5CHLqipY=; b=HJGWRc+RwzdyLdXtsOJ4k9GyvSwzOUB8BJo4b8Cg8 vq81FWml6ve6L7h0cEHHpbXN0IMKIdAzb8as4npD/CHvaOPZUsSySf0uSvuykyyj JMpdNqrvQq59gbuSCIxeTaoLqbXQLrAXzzP+iFxkJCoeGLUN+zo11+1xRnV6xOI4 wE= X-Virus-Scanned: amavisd-new at yadro.com Received: from mta-01.yadro.com ([127.0.0.1]) by localhost (mta-01.yadro.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4wQcWWR4r1bI; Wed, 3 Aug 2022 19:30:04 +0300 (MSK) Received: from T-EXCH-01.corp.yadro.com (t-exch-01.corp.yadro.com [172.17.10.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mta-01.yadro.com (Postfix) with ESMTPS id 38DDF41291; Wed, 3 Aug 2022 19:29:24 +0300 (MSK) Received: from T-EXCH-08.corp.yadro.com (172.17.11.58) by T-EXCH-01.corp.yadro.com (172.17.10.101) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.32; Wed, 3 Aug 2022 19:29:24 +0300 Received: from NB-591.corp.yadro.com (10.199.18.20) by T-EXCH-08.corp.yadro.com (172.17.11.58) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.1118.9; Wed, 3 Aug 2022 19:29:23 +0300 From: Dmitry Bogdanov <d.bogdanov@yadro.com> To: Martin Petersen <martin.petersen@oracle.com>, <target-devel@vger.kernel.org> CC: <linux-scsi@vger.kernel.org>, <linux@yadro.com>, Dmitry Bogdanov <d.bogdanov@yadro.com> Subject: [RFC PATCH 41/48] target: cluster: sync-up PR data on cluster join Date: Fri, 17 Dec 2021 12:27:25 +0300 Message-ID: <20220803162857.27770-42-d.bogdanov@yadro.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220803162857.27770-1-d.bogdanov@yadro.com> References: <20220803162857.27770-1-d.bogdanov@yadro.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.199.18.20] X-ClientProxiedBy: T-EXCH-01.corp.yadro.com (172.17.10.101) To T-EXCH-08.corp.yadro.com (172.17.11.58) Precedence: bulk List-ID: <linux-scsi.vger.kernel.org> X-Mailing-List: linux-scsi@vger.kernel.org |
Series |
Target cluster implementation over DLM
|
expand
|
diff --git a/drivers/target/target_cluster_dlm.c b/drivers/target/target_cluster_dlm.c index 6dbe1a0b21e2..16391a8661fa 100644 --- a/drivers/target/target_cluster_dlm.c +++ b/drivers/target/target_cluster_dlm.c @@ -152,6 +152,11 @@ static int target_init_dlm(struct se_device *dev) dev->cluster_data = cluster_data; + /* initial sync-up on joining the cluster */ + dlm_ckv_lock_get(cluster_data->pr_lock); + target_pr_sync_cb(dev); + dlm_ckv_lock_release(cluster_data->pr_lock); + return err; fail: if (cluster_data->pr_sync_notify)
Read PR data from cluster on joining to the cluster. acl/lun/tpg are supposed to be configured already. Signed-off-by: Dmitry Bogdanov <d.bogdanov@yadro.com> --- drivers/target/target_cluster_dlm.c | 5 +++++ 1 file changed, 5 insertions(+)