From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751858AbcFUPrq (ORCPT ); Tue, 21 Jun 2016 11:47:46 -0400 Received: from mail-yw0-f176.google.com ([209.85.161.176]:36013 "EHLO mail-yw0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750905AbcFUPrn (ORCPT ); Tue, 21 Jun 2016 11:47:43 -0400 Date: Tue, 21 Jun 2016 11:47:00 -0400 From: Tejun Heo To: Dan Williams Cc: "Martin K. Petersen" , DingXiang , jejb@linux.vnet.ibm.com, Wei Fang , miaoxie@huawei.com, wangyijing@huawei.com, zhangaihua1@huawei.com, zhaohongjiang@huawei.com, houtao1@huawei.com, linux-scsi , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH V2 resend] libata:fix kernel panic when hotplug Message-ID: <20160621154700.GH3262@mtj.duckdns.org> References: <1466052340-25520-1-git-send-email-dingxiang@huawei.com> <20160616202045.GF3262@mtj.duckdns.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.1 (2016-04-27) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Mon, Jun 20, 2016 at 06:46:55PM -0700, Dan Williams wrote: > On Mon, Jun 20, 2016 at 6:22 PM, Martin K. Petersen > wrote: > >>>>>> "Tejun" == Tejun Heo writes: > > > >>> In fact,we don't need libata to deal with hotplug in sas environment. > >>> So we can't run ata hotplug task when ata port is sas host. > > > > Tejun> Martin, can you please confirm whether the above is true. If so, > > Tejun> I'll route the patch through libata w/ stable cc'd. > > > > Not exactly a libsas expert. James? Dan? > > While it is true that libsas itself handles adding / removing devices > we have historically avoided this conflict because > ATA_PFLAG_SCSI_HOTPLUG is never set for libsas ata_ports. So the bug > / behavior change is that ATA_PFLAG_SCSI_HOTPLUG gets set in the > first place. Ignoring it is a band-aid / not the real fix afaics. I see. I'll hold off for now then. Ding Xiang, can you find out where that flag is getting set? Thanks! -- tejun