Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A0359C636D6 for ; Thu, 23 Feb 2023 16:04:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234048AbjBWQEk (ORCPT ); Thu, 23 Feb 2023 11:04:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233162AbjBWQEg (ORCPT ); Thu, 23 Feb 2023 11:04:36 -0500 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 602F852DE7 for ; Thu, 23 Feb 2023 08:04:35 -0800 (PST) Received: by mail-pj1-x102a.google.com with SMTP id qi12-20020a17090b274c00b002341621377cso13357940pjb.2 for ; Thu, 23 Feb 2023 08:04:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.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=SWBJJpfLbxHJ1BO+V07dvblOffLSc664lqCbo/zUG3o=; b=nb+OVzwomSctOUhThvUmOR2NlmDGFcwq8cza1TWz8E3LfhcMPPxcdw1NNU9rZ0aSmb m01LIL+Rz+e8c2LDjGr4FOLqp1jEDJjuuqycCfdOawPUgM2TK39nOj5d3hT4BTUBRFmX SkCEFiY5lyteAKcVFm09fTDfZCiCpRtjAW81OAAHUdO98fUIVP2xRqMCVlnmyemTONvO nbz4QlPKW+HYaE8OD4XZw37IPJcPt3DqzjE7prqAEcqPXZ5o0xS1mBU70Y5M3Ajrudej fxMZghivVYhEBjyZie4GYaz2cCcgdYytjSjAwYWZiVH3/fvGl0G95KFjnf2iUe0MLPK/ PKXA== 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=SWBJJpfLbxHJ1BO+V07dvblOffLSc664lqCbo/zUG3o=; b=rJBBXjwIXKJ/qpxmFIUb3jSNWZlXtAVJWs8dC+ptG5krQx5z1bqgj6/rUKDv8foEsN 6S510dhaGKDXH5zWW4qW0IHY05FnM1MX5W+VM3eg8dhgsHIzfRDstBAvZhmNJT7WCcyu PzhLyWC1H1RlDbLzJESHvMd3yq4Gy9j2TlWzwR9s3TuyHxoy66SGOH/SzmQRowpkvedw 9OG1A8oHPlP8aJNg9pNYA6CGW56ZFnMJQwY0aIBcieZLiRB8LDEJwtqeuDZU1v/e1DlV osunx52Gh+lZYuqyVuWENNquQDG9gwe0R4ps6UIPTA7cUzyn0DFHxMXCkNjgmFIV1BnI XKLg== X-Gm-Message-State: AO0yUKWzCk7yQx+gwhFRKui0pXx5xyKQ+Id6p4BtCNfmKvkpxiugV7n+ oqGL2OTp+bmn/Puq2d9W0eN+8Q== X-Google-Smtp-Source: AK7set8FUWAzS0RHvJ6iPvjFW5jpiDSUmBL6pJlKnGaoF9JksZsQhiJmEwf042gy9Zi9Rf2tS/pF3w== X-Received: by 2002:a05:6a20:6918:b0:cb:7cc4:3ddb with SMTP id q24-20020a056a20691800b000cb7cc43ddbmr11699984pzj.3.1677168274239; Thu, 23 Feb 2023 08:04:34 -0800 (PST) Received: from [192.168.1.136] ([198.8.77.157]) by smtp.gmail.com with ESMTPSA id k184-20020a6384c1000000b004fb26a80875sm4931360pgd.22.2023.02.23.08.04.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 23 Feb 2023 08:04:33 -0800 (PST) Message-ID: <36c3acf2-dd51-f8a5-47d0-043848639cf0@kernel.dk> Date: Thu, 23 Feb 2023 09:04:32 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:102.0) Gecko/20100101 Thunderbird/102.7.2 Subject: Re: [PATCH] driver core: remove CONFIG_SYSFS_DEPRECATED and CONFIG_SYSFS_DEPRECATED_V2 Content-Language: en-US To: Greg Kroah-Hartman , linux-kernel@vger.kernel.org Cc: Jonathan Corbet , "Rafael J. Wysocki" , linux-block@vger.kernel.org, linux-doc@vger.kernel.org References: <20230223073326.2073220-1-gregkh@linuxfoundation.org> From: Jens Axboe In-Reply-To: <20230223073326.2073220-1-gregkh@linuxfoundation.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/23/23 12:33 AM, Greg Kroah-Hartman wrote: > CONFIG_SYSFS_DEPRECATED was added in commit 88a22c985e35 > ("CONFIG_SYSFS_DEPRECATED") in 2006 to allow systems with older versions > of some tools (i.e. Fedora 3's version of udev) to boot properly. Four > years later, in 2010, the option was attempted to be removed as most of > userspace should have been fixed up properly by then, but some kernel > developers clung to those old systems and refused to update, so we added > CONFIG_SYSFS_DEPRECATED_V2 in commit e52eec13cd6b ("SYSFS: Allow boot > time switching between deprecated and modern sysfs layout") to allow > them to continue to boot properly, and we allowed a boot time parameter > to be used to switch back to the old format if needed. > > Over time, the logic that was covered under these config options was > slowly removed from individual driver subsystems successfully, removed, > and the only thing that is now left in the kernel are some changes in > the block layer's representation in sysfs where real directories are > used instead of symlinks like normal. > > Because the original changes were done to userspace tools in 2006, and > all distros that use those tools are long end-of-life, and older > non-udev-based systems do not care about the block layer's sysfs > representation, it is time to finally remove this old logic and the > config entries from the kernel. Acked-by: Jens Axboe -- Jens Axboe