[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-scsi
Subject: Re: [PATCH] ata: do not schedule hot plug if it is a sas host
From: Jason Yan <yanaijie () huawei ! com>
Date: 2018-02-28 0:28:36
Message-ID: 5A95F7B4.9070300 () huawei ! com
[Download RAW message or body]
On 2018/2/28 2:22, Tejun Heo wrote:
>> diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c
>> >index 11c3137d7b0a..97aeac45b22c 100644
>> >--- a/drivers/ata/libata-eh.c
>> >+++ b/drivers/ata/libata-eh.c
>> >@@ -1384,7 +1384,9 @@ void ata_eh_detach_dev(struct ata_device *dev)
>> >
>> > if (ata_scsi_offline_dev(dev)) {
>> > dev->flags |= ATA_DFLAG_DETACHED;
>> >- ap->pflags |= ATA_PFLAG_SCSI_HOTPLUG;
>> >+ /* libsas handles the hotplug itself */
>> >+ if (!(ap->flags & ATA_FLAG_SAS_HOST))
>> >+ ap->pflags |= ATA_PFLAG_SCSI_HOTPLUG;
> Can you please move the conditional to where we're consuming the flag
> instead?
>
OK, will send a new version.
> Thanks.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic