aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGravatar Tejun Heo <htejun@gmail.com> 2007-05-15 12:29:22 +0200
committerGravatar Jeff Garzik <jeff@garzik.org> 2007-05-16 01:18:31 -0400
commit13b8d09f5de0aaa3153bbccc98baf247387823dc (patch)
treed35c90bd2460d7808595917ccf7c102229353365 /include
parentlibata: fix shutdown warning message printing (diff)
downloadlinux-13b8d09f5de0aaa3153bbccc98baf247387823dc.tar.gz
linux-13b8d09f5de0aaa3153bbccc98baf247387823dc.tar.bz2
linux-13b8d09f5de0aaa3153bbccc98baf247387823dc.zip
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/libata.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h
index 9b2122db30ff..666592ef0b25 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -140,6 +140,7 @@ enum {
ATA_DFLAG_PIO = (1 << 8), /* device limited to PIO mode */
ATA_DFLAG_NCQ_OFF = (1 << 9), /* device limited to non-NCQ mode */
+ ATA_DFLAG_SPUNDOWN = (1 << 10), /* XXX: for spindown_compat */
ATA_DFLAG_INIT_MASK = (1 << 16) - 1,
ATA_DFLAG_DETACH = (1 << 16),