From mboxrd@z Thu Jan 1 00:00:00 1970 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 90945C4332F for ; Sun, 29 Oct 2023 23:52:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230495AbjJ2XwX (ORCPT ); Sun, 29 Oct 2023 19:52:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229533AbjJ2XwW (ORCPT ); Sun, 29 Oct 2023 19:52:22 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECFA391 for ; Sun, 29 Oct 2023 16:52:20 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2F359C433C8; Sun, 29 Oct 2023 23:52:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698623540; bh=+USpA1Hn8SdVnaiCbwCTsOLCuuntj7kA2ZkWgjuXGtA=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=syaX4F2m21X1zHuF4cYnLT/uoh09pg2gLyl5KRcodInl4o7dQ3emR+r9hYyvgVGFq iMFHECLvVxxqjoQrjnhRfZCVDJ8YMb6Uitgmqc9wijoj34jR8DN/AWJJezBA3z7jJw CAz67rmdY2H1UEr6hR+T3X5WOCYaZh9m8GE63Gj2cVlaZDGV+xI5kJeq032MFeRFTc 0nQ4d2CMe7VAMwsvZmxSlJfGVQ4jaUo14bCz7m7PjSM5S/oeMgyo/g6zcoZVkR6ReH cPRbC2IX9pxjmOpL3odyBfmIDSuMYlBZllyyFrdGm0HNUEJ49+WAT8UM8aPDHjaw4t TeYiQznyFJBSQ== Message-ID: <68df1ee3-04ec-431d-b5ac-a5fd26801fe8@kernel.org> Date: Mon, 30 Oct 2023 08:52:18 +0900 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [GIT PULL] ata fixes for 6.6-final Content-Language: en-US To: Linus Torvalds Cc: linux-ide@vger.kernel.org References: <20231027073115.170201-1-dlemoal@kernel.org> From: Damien Le Moal Organization: Western Digital Research In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-ide@vger.kernel.org On 10/28/23 08:43, Linus Torvalds wrote: > On Thu, 26 Oct 2023 at 21:31, Damien Le Moal wrote: >> >> A single patch to fix a regression introduced by the recent >> suspend/resume fixes. The regression is that ATA disks are not stopped >> on system shutdown, which is not recommended and increases the disks >> SMART counters for unclean power off events. This patch fixes this by >> refining the recent rework of the scsi device manage_xxx flags. > > Side note: I think 'bool' ends up always using a whole byte in 'struct > scsi_device' (because you can't take an address of a single bit). > > And while it might all end up being unnoticeable due to padding, those > bools are right next to bitfields. > > Which just makes me go "those should all have been just 'unsigned:1' fields". > > Of course, maybe they actually have their address taken, and it's all > very intentional. I will check. Thanks. > > Linus -- Damien Le Moal Western Digital Research