From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759611AbYEJWh5 (ORCPT ); Sat, 10 May 2008 18:37:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759110AbYEJWh0 (ORCPT ); Sat, 10 May 2008 18:37:26 -0400 Received: from einhorn.in-berlin.de ([192.109.42.8]:44174 "EHLO einhorn.in-berlin.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759070AbYEJWhY (ORCPT ); Sat, 10 May 2008 18:37:24 -0400 X-Envelope-From: stefanr@s5r6.in-berlin.de Date: Sun, 11 May 2008 00:37:14 +0200 (CEST) From: Stefan Richter Subject: [PATCH 5/5] ieee1394: sbp2: spin disks down on suspend and shutdown To: linux1394-devel@lists.sourceforge.net cc: James Bottomley , linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Tino Keitel In-Reply-To: Message-ID: References: <20080429232606.GA14261@dose.home.local> <481874BD.5010807@s5r6.in-berlin.de> <20080507180042.GA32629@dose.home.local> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=us-ascii Content-Disposition: INLINE Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This instructs sd_mod to send START STOP UNIT on suspend and resume, and on driver unbinding or unloading (including when the system is shut down). We don't do this though if multiple initiators may log in to the target. Signed-off-by: Stefan Richter --- drivers/ieee1394/sbp2.c | 2 ++ 1 file changed, 2 insertions(+) Index: linux/drivers/ieee1394/sbp2.c =================================================================== --- linux.orig/drivers/ieee1394/sbp2.c +++ linux/drivers/ieee1394/sbp2.c @@ -2009,6 +2009,8 @@ static int sbp2scsi_slave_configure(stru sdev->use_10_for_rw = 1; + if (sbp2_exclusive_login) + sdev->manage_start_stop = 1; if (sdev->type == TYPE_ROM) sdev->use_10_for_ms = 1; if (sdev->type == TYPE_DISK && -- Stefan Richter -=====-==--- -=-= -=-== http://arcgraph.de/sr/