From owner-freebsd-scsi@FreeBSD.ORG Sun Oct 24 17:09:00 2010 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 325E91065670; Sun, 24 Oct 2010 17:09:00 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 5E3988FC0A; Sun, 24 Oct 2010 17:08:58 +0000 (UTC) Received: by fxm17 with SMTP id 17so2182883fxm.13 for ; Sun, 24 Oct 2010 10:08:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=xQ0esLMS5G0mYb3KgJQC7SoYqeHS/WVkxsu2grHnuy4=; b=Ti7fl5BkhbNX9LWAll+wSSFSnPghmt/F851VlimUx3A71zQO9Nm+aIap60rHHpkwNz NeVXI+R12Z0M6W0xF75SunUTIKE/e2oJBUAbTobFTmX670X4WzngM9sCEDa5IrLjCQUU l4XfLi0HjMyYfuEYa5IRy3kMK0KCaM3zcf0sQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=k54UzljuhG6v0d4Owruem8LEAuhv0djAGaRnOP6CGUOAu2A7VO2GfHJXDoAAXIG9c4 0Q2Xz3/AhVzakpflEGgHYZLSPLtbjwuIJwQJQlpLkKEIIDPxzecmRr5ri+e+dhlWBGJG OvYWVWS+PRmfLaGf8Bi4iROM79di2oKHpiNvQ= Received: by 10.103.191.17 with SMTP id t17mr6952567mup.54.1287940138250; Sun, 24 Oct 2010 10:08:58 -0700 (PDT) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id n8sm2443031faa.31.2010.10.24.10.08.56 (version=SSLv3 cipher=RC4-MD5); Sun, 24 Oct 2010 10:08:57 -0700 (PDT) Sender: Alexander Motin Message-ID: <4CC46826.9030700@FreeBSD.org> Date: Sun, 24 Oct 2010 20:08:54 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: Bruce Cran References: <201009161742.24228.tijl@coosemans.org> <201009161619.o8GGJAmv035378@lurza.secnetix.de> <20101018155944.GA12425@freebsd.org> <868w1r92rf.fsf@ds4.des.no> <20101021122110.GA65490@freebsd.org> <86zku77mj6.fsf@ds4.des.no> <20101021130730.GA72290@freebsd.org> <86r5fj7gin.fsf@ds4.des.no> <20101024011854.GB78293@freebsd.org> <4CC4633D.4070605@FreeBSD.org> <20101024175306.00003c66@unknown> In-Reply-To: <20101024175306.00003c66@unknown> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Alexander Best , freebsd-scsi@freebsd.org, Oliver Fromme , freebsd-hackers@freebsd.org Subject: Re: Summary: Re: Spin down HDD after disk sync or before power off X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Oct 2010 17:09:00 -0000 Bruce Cran wrote: > On Sun, 24 Oct 2010 19:47:57 +0300 > Alexander Motin wrote: > >> Comparing two ways implementing spindown, I've recalled that both of >> them using xpt_polled_action() method, which depends on working >> controller polling operation. So they could be almost equaly not good. >> But the method present in HEAD now is more universal. Looking on fact >> that need of spindown is not so obvious for SCSI devices (in SAN >> environments), we can just make kern.cam.power_down tunable a bitmask >> of supported protocols for now. Patch is attached. > > I've just committed the patch to move the functionality into ada(4). > Should it be reverted? Both solutions are possible. I don't have strong enough position to hurry now, when it is already done. It would be nice to hear opinion of SCSI people whether this functionality needed/safe there. -- Alexander Motin