Re: [PATCH RFC] sd: spin down disks on removal or power-down

2007-01-31 Thread Stefan Richter
Robert Hancock wrote: http://marc.theaimsgroup.com/?t=11692262122 It looks like Tejun's patch essentially does the same thing as mine with the addition of the control from userspace. There is one exception though, my patch also does the stop on removal of the SCSI disk (i.e. writing 1

Re: [PATCH RFC] sd: spin down disks on removal or power-down

2007-01-31 Thread Robert Hancock
Stefan Richter wrote: Robert Hancock wrote: http://marc.theaimsgroup.com/?t=11692262122 It looks like Tejun's patch essentially does the same thing as mine with the addition of the control from userspace. There is one exception though, my patch also does the stop on removal of the SCSI

Re: [PATCH RFC] sd: spin down disks on removal or power-down

2007-01-29 Thread Andrew Morton
On Sun, 28 Jan 2007 19:47:27 -0600 Robert Hancock [EMAIL PROTECTED] wrote: Here's a patch for sd.c I've cooked up which issues a START STOP UNIT command to stop the drive when the SCSI disk is removed or the machine is powered down. The rationale behind this is that apparently on many drives,

Re: [PATCH RFC] sd: spin down disks on removal or power-down

2007-01-29 Thread James Bottomley
On Mon, 2007-01-29 at 15:47 -0800, Andrew Morton wrote: What we don't want to happen is for those disks to spin down during a reboot. It seems that this is OK with this patch. Also, we probably don't want them to be spun down during a kexec_load, but I expect that's OK too. Actually,

[PATCH RFC] sd: spin down disks on removal or power-down

2007-01-28 Thread Robert Hancock
Here's a patch for sd.c I've cooked up which issues a START STOP UNIT command to stop the drive when the SCSI disk is removed or the machine is powered down. The rationale behind this is that apparently on many drives, simply cutting power to the spinning disk forces it to do an emergency head