Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp2092234rwl; Sat, 5 Nov 2022 01:47:52 -0700 (PDT) X-Google-Smtp-Source: AMsMyM52CHd9vhuZgJ0kOv8vCyZynJ7alOMWicdtC/+hM42qjDRUTx6Q6wPlawU5J14umIhvQEOK X-Received: by 2002:a17:902:e5d1:b0:187:3593:a86f with SMTP id u17-20020a170902e5d100b001873593a86fmr24442606plf.15.1667638071935; Sat, 05 Nov 2022 01:47:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667638071; cv=none; d=google.com; s=arc-20160816; b=ESZ0Xa7QJK6XR7O87SoBYsGsrntIRAZdZNzMTUFQlzU04Pj/4mQ81EdWh4HsNq0tCz Nqji9hTO3N+GI0BtuT3ckyVUqLVLYnxKQJh27wxmlyjTiOSxjEwf+pJM+Q5wEGr5zGZ/ +jC93LUnR4yAcVRAQ3NxRUssFWd0EUhM04pR8X6T//nsz0CdWqlDT6GT+7FiD8lTc9B4 4+E9UVVPBmRRldG+id+GROH/bN1xg0aI0D9QocvrnKyGh1Jf7rZWEwSpLrMI40GttdtL nUMIFuNls+PmZzmcTcSCllNWjCkV2YYF1EM2uCTDjMU58SuITyx3xRCIYGty/8pqv4nT 2u5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=bsgs5v64dtrb9BK/zWIG40Cs+14Xzy/n1UZhAs2SA7Y=; b=BrQR5BuFUHNyRJ+D+sG3WfA9tJ//VmKyc3/OsFyfugI3XAkr7eKkP6alRcveldwQD8 MEK1tBo6fYftVVCfWRe7gXQGKpLYTv8ZfxTt6nv2f/ZB63wXp/40C8OkCGg2hTtEdu8u fqqV0Ve5n4eBxpxdOUPwEEzAtZAtcA/SCipaBsg/HnF0Ey3Mej/OuI/4qBOzR7whtnd1 8c0928rpT/KNbEgMCDqAIdLIsQwARbc4roWzQHxAWRK36v7yuauYRRWxib1z7m8Kgd7B XEJymVFuYK8AsaBsaKmjwHEFc7nUprlw4WxfKS/h3tU3jcTskKz9yOgWJFB3aBWdsVas Du0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Hpkuv3Fu; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a13-20020a170902b58d00b0017829e27195si2073177pls.521.2022.11.05.01.47.33; Sat, 05 Nov 2022 01:47:51 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Hpkuv3Fu; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229537AbiKEINO (ORCPT + 99 others); Sat, 5 Nov 2022 04:13:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229461AbiKEINN (ORCPT ); Sat, 5 Nov 2022 04:13:13 -0400 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 362202B247; Sat, 5 Nov 2022 01:13:12 -0700 (PDT) Received: by mail-ed1-x536.google.com with SMTP id a13so10679685edj.0; Sat, 05 Nov 2022 01:13:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=bsgs5v64dtrb9BK/zWIG40Cs+14Xzy/n1UZhAs2SA7Y=; b=Hpkuv3FuzjPSSr0s6F44u38vgcNHlm+qRMjeYeN7DIsx21Rsy9qLhJ5oEBuE8cQ/7f gOpz2Bj3B67JNdQamqt+Ozf3edx8hu0xz2RHktD9bpO+nylhjuNAMYwnNwIo6b8qnozZ fg+ig/rNBELojRZmBxz/AFPKmosHpIsdl3Ju11XgzLo3q5iaKErlZ2h+34ofKgjDmYMx u2/wfAHx5OKbtXlQlZ6UHEX9imLI/gmldPXHirM2E3tNxpKd9wKRRnpSDehfprqIsuRW iIw7B+dKVDa8x/owDtPwtAVGd1JZmZFj1TbtOAEO2j4z80eTYAYboWNN9dEvDbq0JYlh ivww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=bsgs5v64dtrb9BK/zWIG40Cs+14Xzy/n1UZhAs2SA7Y=; b=hiMlnlF3YzbFur/6FkV4sdwRt9c9f0QGbYVPzCjf9v531POBorPuGxgI9vHXRX678R jua+a6Yfrg0U0mC4UHNX6eSjAcT9P7iWJKOKKmFGOF9LGWYPjg4mPprZf72b96uG26U+ wxsB4h5vuCQwmyfsDLlgTd+EDRSvMKrQ5F9kJJW+vzpBeMfkpoueLB+ha+IyPbxA6+ot 7/BOD3xe2fwCu5WrBaOOz3xPpBgry2otWUcY2IyobkzM7etlvcH34Jmes0KFKaAaYj1e zbbeR3fEkfacjWO+ReJZg57nyNs34U2bCVkfA4N6/JVd0F2kdxgc2mvzZ1YcDh12G6F5 Doqw== X-Gm-Message-State: ACrzQf3aZSbnuaTNXpiiGghv/nKTJSR7ir4rUI7jUYz7QmXhPAJqXYJC 0l7t02xgERHoRkGZngNmhF3WoA7y12E= X-Received: by 2002:aa7:c956:0:b0:43b:206d:c283 with SMTP id h22-20020aa7c956000000b0043b206dc283mr39516948edt.381.1667635959118; Sat, 05 Nov 2022 01:12:39 -0700 (PDT) Received: from ?IPV6:2a02:908:1256:79a0:9819:17f5:ee0c:a9e6? ([2a02:908:1256:79a0:9819:17f5:ee0c:a9e6]) by smtp.gmail.com with ESMTPSA id cm21-20020a0564020c9500b00461a6997c5dsm804192edb.83.2022.11.05.01.12.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 05 Nov 2022 01:12:38 -0700 (PDT) Message-ID: Date: Sat, 5 Nov 2022 09:12:37 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [Linaro-mm-sig] Re: [RFC][PATCH v3 12/33] timers: dma-buf: Use timer_shutdown_sync() before freeing timer Content-Language: en-US To: Steven Rostedt , =?UTF-8?Q?Christian_K=c3=b6nig?= Cc: linux-kernel@vger.kernel.org, Linus Torvalds , Thomas Gleixner , Stephen Boyd , Guenter Roeck , Anna-Maria Gleixner , Andrew Morton , Sumit Semwal , linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org References: <20221104054053.431922658@goodmis.org> <20221104054914.085569465@goodmis.org> <20221104015444.57f73efb@rorschach.local.home> <20221104145804.4ec8404e@rorschach.local.home> From: =?UTF-8?Q?Christian_K=c3=b6nig?= In-Reply-To: <20221104145804.4ec8404e@rorschach.local.home> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 Am 04.11.22 um 19:58 schrieb Steven Rostedt: > On Fri, 4 Nov 2022 08:15:53 +0100 > Christian König wrote: > >>> index fb6e0a6ae2c9..5d3e7b503501 100644 >>> --- a/drivers/dma-buf/st-dma-fence.c >>> +++ b/drivers/dma-buf/st-dma-fence.c >>> @@ -412,7 +412,7 @@ static int test_wait_timeout(void *arg) >>> >>> err = 0; >>> err_free: >>> - del_timer_sync(&wt.timer); >>> + timer_shutdown_sync(&wt.timer); >> Mhm, what exactly is the benefit of renaming the function? >> >> Not that I'm against the change, but my thinking is more if there are >> more functions which don't re-arm the time than those which do that then >> why not forbid it in general? > Timers are more often re-armed then not. I had to look for the > locations where del_timer*() was called just before freeing, and other > locations where they are freed later. > > I didn't rename del_timer_sync() to timer_shutdown_sync(), this version > renamed the new "del_timer_shutdown()" to "timer_shutdown_sync()". > > Maybe I'm just confused at what you are asking. No, that explains it a bit better. I was just wondering what exactly the different to del_timer_sync() is. Maybe shorten the summary in the cover letter a bit. The history how this change came to be is not as interesting as why we are changing something. Regards, Christian. > > -- Steve > _______________________________________________ > Linaro-mm-sig mailing list -- linaro-mm-sig@lists.linaro.org > To unsubscribe send an email to linaro-mm-sig-leave@lists.linaro.org