Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp747599lql; Mon, 11 Mar 2024 17:01:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUMkfjzqRW8eOyNNQfhVOEZ6WxozbxEllISgYIyl0EeL2ZnJaQT0N8U4QVWxAL37Rqk8CgEBj9AHw8ZezakJpnEGnxLljU65/jpP4zW2A== X-Google-Smtp-Source: AGHT+IG73YqK3YCoWdrtY7ktDLEsLEgPXenSUxNrsLk2XToLkD2Ykqstx1m6k3YF7LZ2NuovSRUy X-Received: by 2002:a05:622a:1447:b0:42f:2129:eaba with SMTP id v7-20020a05622a144700b0042f2129eabamr415924qtx.35.1710201697756; Mon, 11 Mar 2024 17:01:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710201697; cv=pass; d=google.com; s=arc-20160816; b=QeXbKyxpY7UWSiEG0r22t+CbeHjqt50mWsDIf6FxRJbRDSxodOCzMD7gYpzL8uzDBf U6X3C15kdzqM63w+XVgXYNmDid+h7zybOOqz5GDd0GJjTxQ23C2ub3fns9FarJOpGgfn Lpxo4O0wQ2zl1S8+YJOASDzCS4m+h5Y2cft5r/S118S+h9xVZIRtOdStHNeDofQL5anw 2j0WfuV7gWzmGN/Q8tP574aRZW6g0J3FvCRwfw5PnGpGBfIWyoUPDAHtyUm3DfDaTFS8 RNsGSw94Cxxv3ZvnZh3DyhMai95eZhOlThvofLavtNveCHquXwxLW+y1p/V5MBQrD6F4 sBIg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature :dkim-filter; bh=AYogXDFWk0vVK9Bn0RzjwmQ4yDt/pcDp8R+IGvzlJqs=; fh=r/U7TiugQOXYMZg9/HlnhyrD0NKERu3tWte3YY7jRa0=; b=g78hMz6S/OBLrPwK9PDyT9QKSOqrw++kKCn3xps2ttBHdrmHtAkAgQoGJplnwWK/6O AQuKQYh6jJzRQG/FELrL8ongwhJlXVldvxjX6pbQAtTRx526+ahXLCcJN4QK/kA88SKI qSXXX5umJ8ooQonakQd8IjOW2McEWSakzKCC42ig9noySbWLz7CscjsxJEvam6YlwgWU rsbzkFE5wZaE+SkuXvFFvsbrkxNJ49jRymloqJOLyoXzSFIhkI5reTRifpCJ0VE3YZjD X2yZ5Sytxkc/S7n5hbkQ7JjMagIXzcOA7r72RE3/kJOuGG/ERLTTrOioHpdPlOXuRT2t F9MQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@salutedevices.com header.s=mail header.b=tUE0gtzI; arc=pass (i=1 spf=pass spfdomain=salutedevices.com dkim=pass dkdomain=salutedevices.com dmarc=pass fromdomain=salutedevices.com); spf=pass (google.com: domain of linux-kernel+bounces-99680-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99680-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=salutedevices.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id f5-20020ac85d05000000b0042dff81e402si6637635qtx.471.2024.03.11.17.01.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 17:01:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-99680-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@salutedevices.com header.s=mail header.b=tUE0gtzI; arc=pass (i=1 spf=pass spfdomain=salutedevices.com dkim=pass dkdomain=salutedevices.com dmarc=pass fromdomain=salutedevices.com); spf=pass (google.com: domain of linux-kernel+bounces-99680-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99680-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=salutedevices.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 6EBD31C21197 for ; Tue, 12 Mar 2024 00:01:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6BE0A4687; Tue, 12 Mar 2024 00:01:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=salutedevices.com header.i=@salutedevices.com header.b="tUE0gtzI" Received: from mx1.sberdevices.ru (mx1.sberdevices.ru [37.18.73.165]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BDA1128E7; Tue, 12 Mar 2024 00:01:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=37.18.73.165 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710201688; cv=none; b=OWauxBN0BUsBYA3V06QcUetCbD/Gi84erThZfAVFT7JwzW9PSpbSmZ0pHBHRJXtZvDkNipW6c7xaVsVFkMpGd7VcdweN5kY1MiWObRrvLUfnENorzGjbGnTOHfpXLk9KhAuYkHS6ANURy8rTUh17yUmzMTsHjbTzIhal5cbY+2k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710201688; c=relaxed/simple; bh=GeZsYznIGTP3qixonCG7cT/PIBuzAYo3PpP87XhnnUE=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=cpabJ+hGycnoa9DLVOvqgSvRFV6sB3XjfvQnG6XWbVnQEKaNQO0LqAvC9UrIuFhaSQ2zbKnBe83uDaMS3oj4/9S3G64fHSjfxYYDyF085CpZt+zYEMXF9dfTr6vodBNi5af3wX41xpgTxhDVsOhoF/gxcMsNl8q3DHC8nFKFYuc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=salutedevices.com; spf=pass smtp.mailfrom=salutedevices.com; dkim=pass (2048-bit key) header.d=salutedevices.com header.i=@salutedevices.com header.b=tUE0gtzI; arc=none smtp.client-ip=37.18.73.165 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=salutedevices.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=salutedevices.com Received: from p-infra-ksmg-sc-msk01 (localhost [127.0.0.1]) by mx1.sberdevices.ru (Postfix) with ESMTP id 3EB32100005; Tue, 12 Mar 2024 03:01:22 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.sberdevices.ru 3EB32100005 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=salutedevices.com; s=mail; t=1710201682; bh=AYogXDFWk0vVK9Bn0RzjwmQ4yDt/pcDp8R+IGvzlJqs=; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type:From; b=tUE0gtzIz2fZtZBECrQFgTAN85nrFZTDnwi9I815zB1qvb3aDwut2BQI9nUxuttgo AVShDwMjAPX9IZjm8ZSyLsvokwBkCTtFcZPdERpWggfMt9Ac7CaSq0jgeBQMqrLd63 YeBfyQLInCaup4CFe4lTPw8fh9CbOWvkgyZ1KP61nZf4rw4W1u/lYRjCIziWZ2swVw 5RhQfxDb7CTXmJn2oWD4IYiQweJKfNcjNZsfIeNd/aizXSSo75m1XFtkH3JX9/CWFv ElQv3ngxWxTLgBgrpvHZ/k1qWFkVHAFi+vo7CMNcdFAlsG3JimLOSRtgWSsMSbq5NY r9cLygfouw8hQ== Received: from smtp.sberdevices.ru (p-i-exch-sc-m02.sberdevices.ru [172.16.192.103]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.sberdevices.ru (Postfix) with ESMTPS; Tue, 12 Mar 2024 03:01:22 +0300 (MSK) Received: from [172.28.160.241] (100.64.160.123) by p-i-exch-sc-m02.sberdevices.ru (172.16.192.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Tue, 12 Mar 2024 03:01:21 +0300 Message-ID: <5ef5fb8d-f1be-4c8e-92fe-f40b68478228@salutedevices.com> Date: Tue, 12 Mar 2024 03:01:21 +0300 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 02/10] locking/mutex: introduce devm_mutex_init Content-Language: en-US To: Andy Shevchenko CC: , , , , , , , , , , , , , , , , , , References: <20240307024034.1548605-1-gnstark@salutedevices.com> <20240307024034.1548605-3-gnstark@salutedevices.com> From: George Stark In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: p-i-exch-sc-m01.sberdevices.ru (172.16.192.107) To p-i-exch-sc-m02.sberdevices.ru (172.16.192.103) X-KSMG-Rule-ID: 10 X-KSMG-Message-Action: clean X-KSMG-AntiSpam-Lua-Profiles: 183875 [Feb 29 2024] X-KSMG-AntiSpam-Version: 6.1.0.3 X-KSMG-AntiSpam-Envelope-From: gnstark@salutedevices.com X-KSMG-AntiSpam-Rate: 0 X-KSMG-AntiSpam-Status: not_detected X-KSMG-AntiSpam-Method: none X-KSMG-AntiSpam-Auth: dkim=none X-KSMG-AntiSpam-Info: LuaCore: 7 0.3.7 6d6bf5bd8eea7373134f756a2fd73e9456bb7d1a, {Tracking_from_domain_doesnt_match_to}, FromAlignment: s, ApMailHostAddress: 100.64.160.123 X-MS-Exchange-Organization-SCL: -1 X-KSMG-AntiSpam-Interceptor-Info: scan successful X-KSMG-AntiPhishing: Clean X-KSMG-LinksScanning: Clean X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 2.0.1.6960, bases: 2024/02/29 19:21:00 #23899999 X-KSMG-AntiVirus-Status: Clean, skipped Hello Andy On 3/7/24 13:34, Andy Shevchenko wrote: > On Thu, Mar 7, 2024 at 4:40 AM George Stark wrote: >> >> Using of devm API leads to a certain order of releasing resources. >> So all dependent resources which are not devm-wrapped should be deleted >> with respect to devm-release order. Mutex is one of such objects that >> often is bound to other resources and has no own devm wrapping. >> Since mutex_destroy() actually does nothing in non-debug builds >> frequently calling mutex_destroy() is just ignored which is safe for now >> but wrong formally and can lead to a problem if mutex_destroy() will be >> extended so introduce devm_mutex_init() >> >> Signed-off-by: George Stark >> Signed-off-by: Christophe Leroy > >> Hello Christophe. Hope you don't mind I put you SoB tag because you helped alot >> to make this patch happen. > > You also need to figure out who should be the author of the patch and > probably add a (missing) Co-developed-by. After all you should also > follow the correct order of SoBs. > Thanks for the review. I explained in the other letter as I see it. So I'd leave myself as author and add appropriate tag with Christophe's name. BTW what do you mean by correct SoB order? Is it alphabetical order or order of importance? -- Best regards George