Tejun Heo 99cf610aa4 libata: clear dev->ering in smarter way
dev->ering used to be cleared together with the rest of ata_device in
ata_dev_init() which is called whenever a probing event occurs.
dev->ering is about to be used to track probing failures so it needs
to remain persistent over multiple porbing events.  This patch
achieves this by doing the following.

* Instead of CLEAR_OFFSET, define CLEAR_BEGIN and CLEAR_END and only
  clear between BEGIN and END.  ering is moved after END.  The split
  of persistent area is to allow hotter items remain at the head.

* ering is explicitly cleared on ata_dev_disable() and when device
  attach succeeds.  So, ering is persistent throug a device's life
  time (unless explicitly cleared of course) and also through periods
  inbetween disablement of an attached device and successful detection
  of the next one.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2009-02-02 23:03:17 -05:00
..
2009-01-16 14:45:34 -05:00
2009-01-08 16:29:41 +00:00
2009-01-29 18:04:43 -08:00
2009-01-19 13:46:57 +01:00
2009-01-11 01:34:25 +01:00
2009-01-26 12:24:38 -08:00
2009-01-15 16:39:40 -08:00
2009-01-29 18:04:45 -08:00
2009-01-09 03:39:43 -05:00
2009-01-30 08:40:54 -08:00