Re: [PATCH 3.10 141/319] scsi: mpt3sas: Fix secure erase premature termination

From: James Bottomley
Date: Tue Feb 07 2017 - 12:02:59 EST


On Tue, 2017-02-07 at 07:59 +0100, Willy Tarreau wrote:
> Hi James,
>
> On Mon, Feb 06, 2017 at 10:38:48PM -0800, James Bottomley wrote:
> > On Mon, 2017-02-06 at 23:26 +0100, Willy Tarreau wrote:
> (...)
> > > We don't have the referenced commit above in 3.10 so we should be
> > > safe. Additionally I checked that neither 4.4 nor 3.12 have them
> > > either, so that makes me feel confident that we can skip it in
> > > 3.10 as well.
> >
> > The original was also racy with respect to multiple commands, so
> > the above fixed the race as well.
>
> OK so I tried to backport it to 3.10. I dropped a few parts which
> were addressing this one marked for stable 4.4+ :
> 7ff723a ("scsi: mpt3sas: Unblock device after controller reset")
>
> And I got the attached patch. All I know is that it builds. I'd
> appreciate it if someone could confirm its validity, in which case
> I'll add it.

The two patches apply without fuzz to your tree and the combination is
a far better bug fix than the original regardless of whether 7ff723a
exists in your tree or not. By messing with the patches all you do is
add the potential for introducing new bugs for no benefit, so why take
risk for no upside?

James