libata: track spindown status and skip spindown_compat if possible
authorTejun Heo <htejun@gmail.com>
Tue, 15 May 2007 10:29:22 +0000 (12:29 +0200)
committerJeff Garzik <jeff@garzik.org>
Wed, 16 May 2007 05:18:31 +0000 (01:18 -0400)
commit13b8d09f5de0aaa3153bbccc98baf247387823dc
treed35c90bd2460d7808595917ccf7c102229353365
parentda071b42f73dabbd0daf7ea4c3ff157d53b00648
libata: track spindown status and skip spindown_compat if possible

Our assumption that most distros issue STANDBYNOW seems wrong.  The
upstream sysvinit and thus many distros including gentoo and opensuse
don't take any action for libata disks on spindown.  We can skip
compat handling for these distros so that they don't need to update
anything to take advantage of kernel-side shutdown.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/libata-scsi.c
include/linux/libata.h