android_kernel_xiaomi_sdm845/include/linux/raid
NeilBrown eea1bf384e md: Fix is_mddev_idle test (again).
There are two problems with is_mddev_idle.

1/ sync_io is 'atomic_t' and hence 'int'.  curr_events and all the
   rest are 'long'.
   So if sync_io were to wrap on a 64bit host, the value of
   curr_events would go very negative suddenly, and take a very
   long time to return to positive.

   So do all calculations as 'int'.  That gives us plenty of precision
   for what we need.

2/ To initialise rdev->last_events we simply call is_mddev_idle, on
   the assumption that it will make sure that last_events is in a
   suitable range.  It used to do this, but now it does not.
   So now we need to be more explicit about initialisation.

Signed-off-by: NeilBrown <neilb@suse.de>
2009-03-31 14:27:02 +11:00
..
bitmap.h Improve setting of "events_cleared" for write-intent bitmaps. 2008-06-28 08:31:22 +10:00
Kbuild
linear.h md: Convert remaining 1k representations in linear.c to sectors. 2008-10-13 11:55:12 +11:00
md_k.h md: Fix is_mddev_idle test (again). 2009-03-31 14:27:02 +11:00
md_p.h headers_check fix: raid/md_p.h 2009-01-30 23:32:45 +05:30
md_u.h
md.h md: remove space after function name in declaration and call. 2008-10-13 11:55:12 +11:00
multipath.h
raid0.h md: raid0: make hash_spacing and preshift sector-based. 2009-01-09 08:31:08 +11:00
raid1.h
raid5.h md: replace R5_WantPrexor with R5_WantDrain, add 'prexor' reconstruct_states 2008-06-28 08:32:06 +10:00
raid10.h
xor.h async_tx: add the async_tx api 2007-07-13 08:06:14 -07:00