Re: [PATCH v10 13/33] scsi: rdac: Fix sshdr use

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 7/25/23 02:59, John Garry wrote:
> On 22/07/2023 18:10, Mike Christie wrote:
>>>>> As I see, err is initially set to SCSI_DH_OK when declared. Then if we need to retry and 2nd call to scsi_execute_cmd() passes, such that rc == 0, then err still holds the old value. This seems same as pre-existing behaviour - is this proper?
>>>> I guess this has been working by accident.
>>>>
>>>> When that happens we end up returning one of the retryable error codes
>>>> to dm-multipath. It will then recall us, and before we re-run this
>>>> function we will run check_ownership and see that the last call worked.
>>>>
> 
> Hi Mike,
> 
>>> I'd suggest that we fix this up as a prep patch, if you don't mind.
>>>
>> Do you mean just change the description of this patch to reflect it fixes the
>> second bug? It already is a prep patch. The second rdac patch is built over it.
> 
> AFAICS, this patch does not fix the bug where @err may hold a stale value. However this broken code goes away later in the series.
> 

Ah shoot, you're right. I should have stayed on vacation one more day :)

>> stable can take the sshdr fix patches without the API change ones if they want.
>>
>> I just put the sshdr one next to the API change one, so reviewers wouldn't
>> have to jump back and forth between the front and back of the patchset.
>>
>> Do you mean move all the sshd hdr patches to a separate patchset?
> No, I was just suggesting that we fix the broken code also in a separate patch in this series, like:
> 

Got it. I'll add that patch to the series.




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux