From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Bottomley Subject: Re: [PATCH 03/12] libata, libsas: introduce sched_eh and end_eh port ops Date: Sun, 22 Apr 2012 18:30:28 +0100 Message-ID: <1335115828.13208.31.camel@dabdike.lan> References: <20120413233343.8025.18101.stgit@dwillia2-linux.jf.intel.com> <20120413233706.8025.56546.stgit@dwillia2-linux.jf.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: Received: from bedivere.hansenpartnership.com ([66.63.167.143]:50454 "EHLO bedivere.hansenpartnership.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751601Ab2DVRah (ORCPT ); Sun, 22 Apr 2012 13:30:37 -0400 In-Reply-To: <20120413233706.8025.56546.stgit@dwillia2-linux.jf.intel.com> Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: Dan Williams Cc: Tejun Heo , linux-ide@vger.kernel.org, linux-scsi@vger.kernel.org, Jacek Danecki On Fri, 2012-04-13 at 16:37 -0700, Dan Williams wrote: > When managing shost->host_eh_scheduled libata assumes that there is a > 1:1 shost-to-ata_port relationship. libsas creates a 1:N relationship > so it needs to manage host_eh_scheduled cumulatively at the host level. > The sched_eh and end_eh port port ops allow libsas to track when domain > devices enter/leave the "eh-pending" state under ha->lock (previously > named ha->state_lock, but it is no longer just a lock for ha->state > changes). > > Since host_eh_scheduled indicates eh without backing commands pinning > the device it can be deallocated at any time. Move the taking of the > domain_device reference under the port_lock to guarantee that the > ata_port stays around for the duration of eh. > Cc: Tejun Heo > Acked-by: Jacek Danecki Could we standardise on Acked-by, please. In my book it means the maintainer of a piece of code agrees with the change and lets me take it through my tree. I'm aware that not everyone uses this definition, so we can use a different standard from my current one, but what does it mean in this case? > Signed-off-by: Dan Williams > --- > drivers/ata/libata-core.c | 4 ++ > drivers/ata/libata-eh.c | 57 ++++++++++++++++++++++++++++------- > drivers/scsi/libsas/sas_ata.c | 38 +++++++++++++++++++++-- > drivers/scsi/libsas/sas_discover.c | 6 ++-- > drivers/scsi/libsas/sas_event.c | 12 ++++--- > drivers/scsi/libsas/sas_init.c | 14 ++++----- > drivers/scsi/libsas/sas_scsi_host.c | 27 +++++++++++++---- > include/linux/libata.h | 4 ++ > include/scsi/libsas.h | 4 ++ > include/scsi/sas_ata.h | 5 +++ > 10 files changed, 134 insertions(+), 37 deletions(-) This is a pretty big change for rc fixes. None of the other changes in the series seem to be dependent on it, what bug is it actually fixing? James