Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp11194137rwd; Thu, 22 Jun 2023 09:52:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7yrO8HD8pZNj/5HXzhO3xo1/3eHua4XAFTeXUhIbW4OiLWWcIci4PXbnvXE9Xwo9I04h5O X-Received: by 2002:a92:dc03:0:b0:341:e2aa:354d with SMTP id t3-20020a92dc03000000b00341e2aa354dmr14678060iln.12.1687452775503; Thu, 22 Jun 2023 09:52:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687452775; cv=none; d=google.com; s=arc-20160816; b=jrjjoGg6sZbwo4z3i+FU+VnxUJw+f3u2ht5ZIILnTMvNrsLhPOpdQ64kKIjKJr7Qo/ v28PZ0PaMXKTpk1XfrrNPG7FdYfAQBDyDN6YOghnq9rVUcGnS8dBDcliT2GFeUO7vgIZ z2/Wsv7sdYr+2izDqD4SJ7LVqcxvtmsz4HBCpUpVrVzkKDNfJuu2ng/v08KFowCcTZd/ /qOMb+h8p3lRVx6TbJXhvWJD4M1ZLPA2DmWnLXZ+0RcrxOEBnIx/BlTc2YSZjFjwHTg4 q6Qz6wqCqZJIlXqXeACjRKW27bhkaIGYzhkCvzLjMrb0bY7usDzEBR63xZY/6HJ3aZHT 5vpg== 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=LJlONBowRbEQkaAjE/9HnNNbTEAVVilEOjQDFjjRaRY=; b=wJsoLqceNIrYAsiRoNQS+/Rk7zd9UvfVYkL+QltQQjYMepYFb4+uO3FF81MGTDNiIh XQxhBWZlrtYniu9bdbQ4yNhKanmjtFX2F5E6WjHVZnKRjG/2yBARy62RfvlSWZ1liwt1 JU2+pgfKzPeTY5ZxNAIZi/XdmxXDt9y9eB5pAklpMVvDBV/ycCWvUxdJ9T+PL4JRBgSw VOifVOWyIVHSYnuMEMW4mkoOnlkA7wnHDhAuK0YkXWQbbw7n8Dm7Bdkl/LHtl71vUB+k 4cYiX83OAbraZ1ywA8YSXaHcVTC48ZszFw7KLv4eJ7MZ/X4SpuZx0kLYcaMFFvcwONJv QpYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yandex.ru header.s=mail header.b=amcOrZR3; 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=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g15-20020a63374f000000b005533f251ea7si6779862pgn.122.2023.06.22.09.52.28; Thu, 22 Jun 2023 09:52:55 -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=@yandex.ru header.s=mail header.b=amcOrZR3; 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=NONE dis=NONE) header.from=yandex.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230423AbjFVQlD (ORCPT + 99 others); Thu, 22 Jun 2023 12:41:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229853AbjFVQlC (ORCPT ); Thu, 22 Jun 2023 12:41:02 -0400 Received: from forward500c.mail.yandex.net (forward500c.mail.yandex.net [178.154.239.208]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5C4B1BDF; Thu, 22 Jun 2023 09:40:59 -0700 (PDT) Received: from mail-nwsmtp-smtp-production-main-91.sas.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-91.sas.yp-c.yandex.net [IPv6:2a02:6b8:c14:2991:0:640:bb47:0]) by forward500c.mail.yandex.net (Yandex) with ESMTP id 8927E5ED93; Thu, 22 Jun 2023 19:40:57 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-91.sas.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id reJYePLDd8c0-cwfrBZLp; Thu, 22 Jun 2023 19:40:56 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1687452056; bh=LJlONBowRbEQkaAjE/9HnNNbTEAVVilEOjQDFjjRaRY=; h=From:In-Reply-To:Cc:Date:References:To:Subject:Message-ID; b=amcOrZR3/vGgEJBesBzTT0+7DVzpJ/1YvucHPxbxSXLPjsoXBvO5S3q803uycIm+C lX2FuDwmlnibR/tCYAbopZi3MB+LSwIY7FHBfdfK+mnXF+3XzjKQXO71FcZnAhwrl/ FQh5tarSoU9KAumLcNloPD1Kfg/5NxCpUsQEWVOI= Authentication-Results: mail-nwsmtp-smtp-production-main-91.sas.yp-c.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <7bbb29d2-4cae-48bd-1b97-9f4dbf6ffb19@yandex.ru> Date: Thu, 22 Jun 2023 21:40:52 +0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH 2/2] selftests: add OFD lock tests Content-Language: en-US To: Jeff Layton , linux-kernel@vger.kernel.org Cc: Chuck Lever , Alexander Viro , Christian Brauner , linux-fsdevel@vger.kernel.org, Shuah Khan , linux-kselftest@vger.kernel.org, linux-api@vger.kernel.org References: <20230621152214.2720319-1-stsp2@yandex.ru> <20230621152214.2720319-3-stsp2@yandex.ru> <4db7c65bee0739fe7983059296cfc95f20647fa3.camel@kernel.org> From: stsp In-Reply-To: <4db7c65bee0739fe7983059296cfc95f20647fa3.camel@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,NICE_REPLY_A,SCC_BODY_URI_ONLY,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 22.06.2023 16:48, Jeff Layton пишет: > I'm not opposed to adding a selftest here, but most filesystem testing > is done via xfstests: > > https://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git/ > > It would be better to add this test to the existing generic/478 test > that tests OFD locks. Can you patch that to add a test for the new > functionality? I don't actually think its possible. It seems like their script creates 2 t_ofd_locks processes, one for creating the lock, one for testing it. This is not our case. To make it work our way, we'd probably need to hack that test directly into t_ofd_locks.c, so that it can set and test from the same fd. And I don't know how to even run these tests. :) So I am really inclined to limit myself with a kernel selftest.