Files
linux/drivers/md
Jonathan Brassow 943317efdb dm raid1: clear region outside spinlock
A clear_region function is permitted to block (in practice, rare) but gets
called in rh_update_states() with a spinlock held.

The bits being marked and cleared by the above functions are used
to update the on-disk log, but are never read directly.  We can
perform these operations outside the spinlock since the
bits are only changed within one thread viz.
   - mark_region in rh_inc()
   - clear_region in rh_update_states().

So, we grab the clean_regions list items via list_splice() within the
spinlock and defer clear_region() until we iterate over the list for
deletion - similar to how the recovered_regions list is already handled.
We then move the flush() call down to ensure it encapsulates the changes
which are done by the later calls to clear_region().

Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-07-12 15:01:08 -07:00
..
2005-09-17 11:49:58 -07:00
2006-01-01 22:21:50 +01:00
2007-07-12 15:01:08 -07:00
2005-04-16 15:20:36 -07:00
2007-07-12 15:01:08 -07:00
2007-07-12 15:01:08 -07:00
2007-05-09 12:30:46 -07:00
2007-07-12 15:01:08 -07:00
2007-05-09 12:30:47 -07:00
2007-05-09 12:30:48 -07:00
2007-07-12 15:01:08 -07:00
2007-05-09 12:30:47 -07:00
2007-07-12 15:01:08 -07:00
2006-12-08 08:29:09 -08:00
2007-05-09 12:30:47 -07:00
2007-07-12 15:01:08 -07:00
2005-04-16 15:20:36 -07:00
2007-05-09 12:30:47 -07:00
2005-04-16 15:20:36 -07:00
2005-09-17 11:49:58 -07:00
2005-09-17 11:49:58 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-06-16 13:16:15 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00