Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp738083iob; Wed, 4 May 2022 07:04:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnyPspeeum7CtUhUiHzRIsuefXzL/bx5EMjOueHPLq/KS7yfjFovHCcCeCq7DHWgbO/pIk X-Received: by 2002:a05:6638:418a:b0:32b:5f99:8139 with SMTP id az10-20020a056638418a00b0032b5f998139mr6738640jab.295.1651673090601; Wed, 04 May 2022 07:04:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651673090; cv=none; d=google.com; s=arc-20160816; b=KZWv7TCTksFjxnVRLSMpvNxqxcsVpfuVtSzff20yuguv3fv2BHEsNie9xTnNf8iW7p fAoLX9P+bzCDNdUSyCydobQVBdM2dTj0tv5JdypZ9sF+wL2J4MyAfz0t2SWFVmEKrLAq +w8lMrO9awwVyqmqShJ0osmwKw/OK/EqPcsrMXT/3Ie8aImJ1tspMOq5BrinJKAN4Jdr TOOxtBg5qfTF3u8Z5wGcMmrIz0v0F2IazWiLUM6SMkm+GAn3fCTXVyCwU7DfZeuY9fSm 3k1LfEUnoYV8HasCXXjqSzQ5pPEF/66PnQMzaSPJA92EmUUDbgUjc3VBkXdxaTZn+iOR Ybag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=nxIVtJgn9uCoMDZQlkFnAMS4uv8a1uLlsWPhxCS8vgc=; b=khabjRen60gw8ftv4yw+cSDBschU9asN/tJN3Hw235Z2tz3eJsPjvy8pxHvR/5Magp Bubih+q3BKxssshcTgjvOg5WcjTCdQ052sMgZbddRGfYAr3dEQTTZ2imB8NJN+wIWuL2 w4ZDLPe1wKG2SWSwSyCVMZH2L9kRvq3H9xncU/6IwoY9j9xNu3NQ24He4p1pfRwQlo95 B/l9WdF1AxF3HtEpkQoWHmiJMTTrftgJPhLx4ryYwKxVL+P6uPlXKJN24/buyjePsDdu voUNVIeDBkHptt/HRUs/q/16m2FB6h7NLus8nmpu0PPGTEt6A2RgevlwlNEXFrTou406 +YlQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a13-20020a056e02180d00b002cf24607b58si3462143ilv.46.2022.05.04.07.04.28; Wed, 04 May 2022 07:04:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347259AbiEDIzt (ORCPT + 99 others); Wed, 4 May 2022 04:55:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346766AbiEDIx3 (ORCPT ); Wed, 4 May 2022 04:53:29 -0400 Received: from lgeamrelo11.lge.com (lgeamrelo11.lge.com [156.147.23.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B922D255B2 for ; Wed, 4 May 2022 01:49:22 -0700 (PDT) Received: from unknown (HELO lgeamrelo01.lge.com) (156.147.1.125) by 156.147.23.51 with ESMTP; 4 May 2022 17:19:21 +0900 X-Original-SENDERIP: 156.147.1.125 X-Original-MAILFROM: byungchul.park@lge.com Received: from unknown (HELO localhost.localdomain) (10.177.244.38) by 156.147.1.125 with ESMTP; 4 May 2022 17:19:21 +0900 X-Original-SENDERIP: 10.177.244.38 X-Original-MAILFROM: byungchul.park@lge.com From: Byungchul Park To: torvalds@linux-foundation.org Cc: damien.lemoal@opensource.wdc.com, linux-ide@vger.kernel.org, adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org, mingo@redhat.com, linux-kernel@vger.kernel.org, peterz@infradead.org, will@kernel.org, tglx@linutronix.de, rostedt@goodmis.org, joel@joelfernandes.org, sashal@kernel.org, daniel.vetter@ffwll.ch, chris@chris-wilson.co.uk, duyuyang@gmail.com, johannes.berg@intel.com, tj@kernel.org, tytso@mit.edu, willy@infradead.org, david@fromorbit.com, amir73il@gmail.com, bfields@fieldses.org, gregkh@linuxfoundation.org, kernel-team@lge.com, linux-mm@kvack.org, akpm@linux-foundation.org, mhocko@kernel.org, minchan@kernel.org, hannes@cmpxchg.org, vdavydov.dev@gmail.com, sj@kernel.org, jglisse@redhat.com, dennis@kernel.org, cl@linux.com, penberg@kernel.org, rientjes@google.com, vbabka@suse.cz, ngupta@vflare.org, linux-block@vger.kernel.org, paolo.valente@linaro.org, josef@toxicpanda.com, linux-fsdevel@vger.kernel.org, viro@zeniv.linux.org.uk, jack@suse.cz, jack@suse.com, jlayton@kernel.org, dan.j.williams@intel.com, hch@infradead.org, djwong@kernel.org, dri-devel@lists.freedesktop.org, airlied@linux.ie, rodrigosiqueiramelo@gmail.com, melissa.srw@gmail.com, hamohammed.sa@gmail.com, 42.hyeyoo@gmail.com Subject: [PATCH RFC v6 18/21] dept: Disable Dept on struct crypto_larval's completion for now Date: Wed, 4 May 2022 17:17:46 +0900 Message-Id: <1651652269-15342-19-git-send-email-byungchul.park@lge.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1651652269-15342-1-git-send-email-byungchul.park@lge.com> References: <1651652269-15342-1-git-send-email-byungchul.park@lge.com> X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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-ext4@vger.kernel.org struct crypto_larval's completion is used for multiple purposes e.g. waiting for test to complete or waiting for probe to complete. The completion variable needs to be split according to what it's used for. Otherwise, Dept cannot distinguish one from another and doesn't work properly. Now that it isn't, disable Dept on it. Signed-off-by: Byungchul Park --- crypto/api.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/crypto/api.c b/crypto/api.c index 69508ae..305d24c 100644 --- a/crypto/api.c +++ b/crypto/api.c @@ -115,7 +115,12 @@ struct crypto_larval *crypto_larval_alloc(const char *name, u32 type, u32 mask) larval->alg.cra_destroy = crypto_larval_destroy; strlcpy(larval->alg.cra_name, name, CRYPTO_MAX_ALG_NAME); - init_completion(&larval->completion); + /* + * TODO: Split ->completion according to what it's used for e.g. + * ->test_completion, ->probe_completion and the like, so that + * Dept can track its dependency properly. + */ + init_completion_nocheck(&larval->completion); return larval; } -- 1.9.1