Files
rockchip-kernel/include/uapi/linux
Mikulas Patocka 83d5e5b0af dm: optimize use SRCU and RCU
This patch removes "io_lock" and "map_lock" in struct mapped_device and
"holders" in struct dm_table and replaces these mechanisms with
sleepable-rcu.

Previously, the code would call "dm_get_live_table" and "dm_table_put" to
get and release table. Now, the code is changed to call "dm_get_live_table"
and "dm_put_live_table". dm_get_live_table locks sleepable-rcu and
dm_put_live_table unlocks it.

dm_get_live_table_fast/dm_put_live_table_fast can be used instead of
dm_get_live_table/dm_put_live_table. These *_fast functions use
non-sleepable RCU, so the caller must not block between them.

If the code changes active or inactive dm table, it must call
dm_sync_table before destroying the old table.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
2013-07-10 23:41:18 +01:00
..
2013-04-26 16:08:16 +10:00
2013-05-06 15:55:19 -04:00
2013-07-10 23:41:18 +01:00
2012-10-16 18:49:15 -07:00
2013-03-27 14:37:47 +00:00
2013-02-14 00:54:17 -05:00
2013-03-28 01:20:42 -04:00
2012-12-03 15:07:36 -05:00
2013-03-17 19:40:50 -07:00
2013-06-19 18:30:27 -07:00
2013-06-11 11:06:34 +03:00
2013-02-27 19:10:22 -08:00
2013-04-19 14:57:57 -04:00
2012-11-16 10:15:35 -08:00
2013-03-06 15:40:53 -05:00
2013-03-17 14:35:13 -04:00
2013-03-22 16:19:59 -07:00
2013-03-21 12:36:33 -04:00
2013-05-02 13:40:15 +03:00