From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:33130 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753125AbcKRLyT (ORCPT ); Fri, 18 Nov 2016 06:54:19 -0500 Date: Fri, 18 Nov 2016 12:54:28 +0100 From: Greg KH To: Suganath Prabu S Cc: stable@vger.kernel.org, andrey2805@gmail.com, hch@infradead.org, jejb@kernel.org, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, FusionLinux.pdl@broadcom.com, hare@suse.de, Sathya.Prakash@broadcom.com Subject: Re: [PATCH] mpt2sas: Fix secure erase premature termination. Message-ID: <20161118115428.GA12997@kroah.com> References: <1479469369-15066-1-git-send-email-suganath-prabu.subramani@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1479469369-15066-1-git-send-email-suganath-prabu.subramani@broadcom.com> Sender: stable-owner@vger.kernel.org List-ID: On Fri, Nov 18, 2016 at 05:12:49PM +0530, Suganath Prabu S wrote: > Problem: > This is a work around for a bug with LSI Fusion MPT SAS2 when > pefroming secure erase. Due to the very long time the operation > takes commands issued during the erase will time out and will trigger > execution of abort hook. Even though the abort hook is called for > the specific command which timed out this leads to entire device halt > (scsi_state terminated) and premature termination of the secured erase. > > Fix: > Set device state to busy while erase in progress to reject any incoming > commands until the erase is done. The device is blocked any way during > this time and cannot execute any other command. > > P.S > This is a backport from the same fix for mpt3sas driver intended > for pre-4.4 stable trees. What is the git commit id of the patch in Linus's tree that matches up with this one? thanks, greg k-h