dm: do not call dm_sync_table() when creating new devices
authorHannes Reinecke <hare@suse.de>
Wed, 5 Nov 2014 13:35:50 +0000 (14:35 +0100)
committerMike Snitzer <snitzer@redhat.com>
Mon, 10 Nov 2014 20:25:29 +0000 (15:25 -0500)
commit41abc4e1af369bb5438eaee398e3beee690cc8ca
treea94881ff00d7e3ab5d42544670c77a6bff8224ef
parent6fa9952097747f71c5077f3e14ce3f8adee6f778
dm: do not call dm_sync_table() when creating new devices

When creating new devices dm_sync_table() calls
synchronize_rcu_expedited(), causing _all_ pending RCU pointers to be
flushed. This causes a latency overhead that is especially noticeable
when creating lots of devices.

And all of this is pointless as there are no old maps to be
disconnected, and hence no stale pointers which would need to be
cleared up.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm.c