Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1659540pxm; Fri, 4 Mar 2022 00:39:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJy4teLV7BiMxj3gJGMPR9uTCy2AF8TgjsmlZEEcS0qadZ6gVe/F4bVjM55LB/H278iRshd1 X-Received: by 2002:a17:90a:5915:b0:1bc:7c8e:4c93 with SMTP id k21-20020a17090a591500b001bc7c8e4c93mr9515715pji.152.1646383146405; Fri, 04 Mar 2022 00:39:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646383146; cv=none; d=google.com; s=arc-20160816; b=ljjgm0xqAjluc5RP97k/qgC7WJ+VbLPw9loNDJ4SzSZVsz+mBwkpJl2dWN185kiOiJ +PzhoMPhFM0wTwkxZD9j7/ynzmwRH9AP2dOOcRDzSUDbPN4CzMHByCxWj83qxWKYahYN ZzwpLRuS1aiQvY7EGHee30TVpDmcFRZd/Ngby67UiOA46EFNMDqBofIoa0fr5u4HDVDI I8sEOQhcJZtu+SNDYvedaViu7NmKOHQrQgeyScAXUEE119KC4AOz9pQdPzFNAb9pplah gOpWeRYD7LFkoc/vkOy3Q54PINdJKg8ANwRyOHkJRvym/S0HCSmBirK7e/UeQ74Gt96g gUwg== 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=KX9jSWnY7YPBoVFerqj8b5HDHHSFnccwNDNsC1RnHY4=; b=etSeSblwCynyB4LFghOq65gjEryLyYRk/E6eGwA/J8NlOhTN/JZcadU1XS0TTGKu0G lApkJnqSOcgPWDVxmgd7XMjp2fZ7DBlH/4iAEGDzUXAh47rOmNo9EY/35hrwzNi6Z6wH FUmNBPganO6NZBhroTOs0n4g7rnZQBNdKfSj8UmEEA1XyHDVL7V+3TzpihTIwf2Z5Vuc pTZRUQ6Da9svUXozPgbz4WvM5FOSF6JeHAKskwg/Q7fbry/6xQlTKFaZmX8Y2SD9TPHa +9ovhuVaZSLcwWLIVkIoOIAD1LY+JqkE0HhIkEfhJjEpqgWM0RvKSw7vEerAKTqbQBvr Z50A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 u21-20020a170902a61500b0014a421ec0cesi4399550plq.218.2022.03.04.00.38.52; Fri, 04 Mar 2022 00:39:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232418AbiCDHJn (ORCPT + 99 others); Fri, 4 Mar 2022 02:09:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238765AbiCDHIv (ORCPT ); Fri, 4 Mar 2022 02:08:51 -0500 Received: from lgeamrelo11.lge.com (lgeamrelo12.lge.com [156.147.23.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id F3745192C88 for ; Thu, 3 Mar 2022 23:07:12 -0800 (PST) Received: from unknown (HELO lgemrelse6q.lge.com) (156.147.1.121) by 156.147.23.52 with ESMTP; 4 Mar 2022 16:07:09 +0900 X-Original-SENDERIP: 156.147.1.121 X-Original-MAILFROM: byungchul.park@lge.com Received: from unknown (HELO localhost.localdomain) (10.177.244.38) by 156.147.1.121 with ESMTP; 4 Mar 2022 16:07:09 +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 Subject: [PATCH v4 21/24] dept: Disable Dept on struct crypto_larval's completion for now Date: Fri, 4 Mar 2022 16:06:40 +0900 Message-Id: <1646377603-19730-22-git-send-email-byungchul.park@lge.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1646377603-19730-1-git-send-email-byungchul.park@lge.com> References: <1646377603-19730-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, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,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-kernel@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 cf0869d..f501b91 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