Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3043439ybt; Sat, 4 Jul 2020 04:49:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRhUG/4of7LoKW2hfQNzDr5fbDxF3OrUTEaqsiiRrGDhIXF+KQYRkVz7FweSUyoF2R6awV X-Received: by 2002:a50:a701:: with SMTP id h1mr44293014edc.170.1593863396680; Sat, 04 Jul 2020 04:49:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593863396; cv=none; d=google.com; s=arc-20160816; b=uWHxpmymcpZL0Zl/WSaeaXs7P8jCAq8vMYpwY5QcLFQ9c+ZvPglyjReoywAU2HUOPj TsW7RfJGNCd5E1IGbvsRf41HqIST0fi9lFxe3/vXB3rSCVzxApIpyGqtJIhO2K7mVkdw hM5ORVvh/N+8KYl+3Z45v6wVGrztzZ1qO4Diw1HeMN0nX2HMKofd4zW4kvsL0wWA3QJ0 GRjFskqBLTh3uq+ctbjhzqZ9kHuXFpSDcoKZdqBNNcwD6QR2NzKxKc7zZfIPf5zyK90w 0dT29LdjaMz0t0VeKCYSh8oBY98t4TYMB03E5BwK/doUlQWKwk8XHMWIQSHV2vMl59mV p/xw== 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=3Kp6WQq7ENwFYEHO+OfL9W6lUrFVOQlmJ1vHj5Oi2nE=; b=qV1M4AieNFMofSpTiO4zKERt4E34hcKKa2GJrClRmWqDT0fH3Jlx++WwshcmZxonGz /LsH/2VrogaUXLU7IN26sEKljUcvuqlgPyMSbuhHUFhOqtiKFaAcRIDi2BHEtoHBnBRz +3nXMMMYl/57qvUfZswIou7XiBipudcqwR28cMG6plLbA783Z2C7GmuWurf6z4xiYAtL ddAlbmrvL9Fu4TqDpB8PcmiH8+4FukS8JMBXGoXBXnsvVmtE5rC+LO2JRnr1HhkkDrw+ Hieub3izWI1bwW8pyQZrzmz3jHUF4T5i+C3+1I1ZOq8vWZ0EmVjtqEho7GS4AnFr9aw4 VFTw== 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 l10si9317641ejh.673.2020.07.04.04.49.34; Sat, 04 Jul 2020 04:49:56 -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 S1727798AbgGDLtW (ORCPT + 99 others); Sat, 4 Jul 2020 07:49:22 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:42146 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726452AbgGDLtW (ORCPT ); Sat, 4 Jul 2020 07:49:22 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id B5B651C0BD2; Sat, 4 Jul 2020 13:49:18 +0200 (CEST) Date: Sat, 4 Jul 2020 13:49:17 +0200 From: Pavel Machek To: David Laight Cc: Ming Lei , Henrique de Moraes Holschuh , Damien Le Moal , 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: <20200704114917.GB16083@amd> References: <499138c8-b6d5-ef4a-2780-4f750ed337d3@0882a8b5-c6c3-11e9-b005-00805fc181fe> <20200623204234.GA16156@khazad-dum.debian.net> <20200702211653.GB5787@amd> <2c38b7cd0aad46ec9f8bf03715109f10@AcuMS.aculab.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="24zk1gE8NUlDmwG9" Content-Disposition: inline In-Reply-To: <2c38b7cd0aad46ec9f8bf03715109f10@AcuMS.aculab.com> 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 --24zk1gE8NUlDmwG9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > Sent: 02 July 2020 22:17 > > > > during a FLASH write or erase can cause from weakened cells, to much > > > > larger damage. It is possible to harden the chip or the design aga= inst > > > > this, but it is *expensive*. And even if warded off by hardening a= nd no > > > > FLASH damage happens, an erase/program cycle must be done on the wh= ole > > > > erase block to clean up the incomplete program cycle. > > > > > > It should have been SSD's(including FW) responsibility to avoid data = loss when > > > the SSD is doing its own BG writing, because power cut can happen any= time > > > from SSD's viewpoint. > >=20 > > It should be their responsibility. But we know how well that works > > (not well), so we try hard (and should try hard) to power SSDs down > > cleanly. >=20 > I hope modern SSD disks are better than very old CF drives. Testing showed there were not few yars ago. > I had one where the entire contents got scrambled after an unexpected > power removal. If you have SSD you are willing to kill, I believe you can get to same result with a bit of patience. Best regards, Pavel--=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --24zk1gE8NUlDmwG9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl8AbL0ACgkQMOfwapXb+vKyMACeN5190SjO8Pzu22tMRTlQQgVI 0H8AnjgdVR9eQ07lnz8X1chrshANRxxe =KQnU -----END PGP SIGNATURE----- --24zk1gE8NUlDmwG9--