From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Williams Subject: Re: [PATCH] [SCSI] libsas panic when single phy disabled on a wide port Date: Tue, 4 Oct 2011 16:38:21 -0700 Message-ID: References: <1311826792.28583.YahooMailNeo@web31811.mail.mud.yahoo.com> <1316691000.10571.6.camel@dabdike> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from mail-qw0-f46.google.com ([209.85.216.46]:55888 "EHLO mail-qw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933299Ab1JDXiW (ORCPT ); Tue, 4 Oct 2011 19:38:22 -0400 Received: by qadb15 with SMTP id b15so824918qad.19 for ; Tue, 04 Oct 2011 16:38:21 -0700 (PDT) In-Reply-To: Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: Mark Salyzyn Cc: Jack Wang , linux-scsi@vger.kernel.org, Darrick Wong , Xiangliang Yu , Luben Tuikov , James Bottomley On Tue, Oct 4, 2011 at 4:30 PM, Dan Williams wrote: > That initially looked convincing... but on closer look > sas_port_delete_phy is reducing the number of phys in the transport > class representation of the port (struct sas_port), while the > decrement that sas_deform port is doing is operating the on the > host-local port (struct asd_sas_port). This confusion happens so often for me as well. Maybe it is time to rename these structures and local variable instances, something like: asd_sas_port --> host_sas_port asd_sas_phy --> host_sas_phy ...and: port --> hport phy --> hphy ...for the local variable instances. ??