Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3608667ybt; Tue, 23 Jun 2020 06:39:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+f8zJvPX8Ke0BLwQNoKwsEftqVn1lfkXbIue4wemzvYhYlN5VTd9UwcJOZDPSEZbXPnND X-Received: by 2002:a17:906:7c54:: with SMTP id g20mr4143819ejp.460.1592919579890; Tue, 23 Jun 2020 06:39:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592919579; cv=none; d=google.com; s=arc-20160816; b=Nj+y1G+4fM9s++0W04faZ2B9l2F8axRA7F7th/7bZn8bw8dbkFh9wTHkuch6Vnq12W /qqaGEHxCm/vbpC+J5sToAEg8SPHbDZMj79n8Z6j26uUwEQpxYoLOhgQnskk11hLHqwq gVB+ZQw4QeituaaAimeKj/rsxp6JUuiClxlkNNEX3855TnoKHqbFda72g0Lca/3oVAOQ 1f3fMaahIcsY65KtnUAGlY4Gx8zJ8GqhHu5TmKHrtW+RVmow4lnzRGX3oqvpvYqlOPRj oCtQpkuGNLPwnX6xqeXxAxipZ0c+bVmCgfYNgrVyB70nRlus04iTzVuBtFOOKqqk4fWd yaOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=NOyA5iC75ik7mS9ww3DL1rAV29/7n72j3nLc3YvIxhU=; b=I/BMbol+Z9GtipIKL9PjEYBzptVhCU6gnWvw152Qw4UUsasIigjeg/e4kuaXjx5mub AqJQzyP6rwfzyXIpOFfT+ApocF56s66n+48iZh82tAjnymwBEYSg76cgdt1JVb/mUus8 xghtszxYsKbbw7FjTLm0xPEJB3zbYadlvGu7u46WgsDzCDBIEcSJMFxKdvwjbcKpWCZO vphiFTr2eU3QMCRX6OB7E+Ocng5yvZG47H6ix172evxqpjweeZt6ACJHHrdmaURFPP2g pHZsTRIEQYW0QQIQooyw9Sc6QeW6BKmxhsQQcpie3kLvZ5jNxMefXOk5ZV6iOwy+jRbh TWyQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q8si509325ejt.753.2020.06.23.06.39.16; Tue, 23 Jun 2020 06:39:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732745AbgFWNgV (ORCPT + 99 others); Tue, 23 Jun 2020 09:36:21 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:59704 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732631AbgFWNgV (ORCPT ); Tue, 23 Jun 2020 09:36:21 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 784331C0C0E; Tue, 23 Jun 2020 15:36:19 +0200 (CEST) Date: Tue, 23 Jun 2020 15:36:18 +0200 From: Pavel Machek To: Damien Le Moal Cc: Simon Arlott , "James E.J. Bottomley" , "Martin K. Petersen" , Jonathan Corbet , Linux Kernel Mailing List , "linux-scsi@vger.kernel.org" , "linux-doc@vger.kernel.org" Subject: Re: [PATCH] scsi: sd: stop SSD (non-rotational) disks before reboot Message-ID: <20200623133618.GE2783@bug> References: <499138c8-b6d5-ef4a-2780-4f750ed337d3@0882a8b5-c6c3-11e9-b005-00805fc181fe> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! > > I need to use "reboot=p" on my desktop because one of the PCIe devices > > does not appear after a warm boot. This results in a very cold boot > > because the BIOS turns the PSU off and on. > > > > The scsi sd shutdown process does not send a stop command to disks > > before the reboot happens (stop commands are only sent for a shutdown). > > > > The result is that all of my SSDs experience a sudden power loss on > > every reboot, which is undesirable behaviour. These events are recorded > > in the SMART attributes. > > Why is it undesirable for an SSD ? The sequence you are describing is not > different from doing "shutdown -h now" and then pressing down the power button > again immediately after power is cut... Many SSDs are buggy, and will eventually corrupt themselves if you do enough sudden power loss experiments. HDDs don't like their power cut, either. You can hear the difference between normal power off and power cut... > > Cc: stable@vger.kernel.org This needs lot more testing before going to stable. Thanks, Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html