]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerJiri Slaby <jslaby@suse.cz>
Mon, 16 Feb 2015 15:10:58 +0000 (16:10 +0100)
commitdac05cc7cc144635946cdc6ed38a6734424c2683
tree7e3f87abc60bdfb6ae8d0c8a6dffb37e05ea9684
parent677984600a8de443ca9596998e96d70dfc8f5525
dm: do not call dm_sync_table() when creating new devices

commit 41abc4e1af369bb5438eaee398e3beee690cc8ca upstream.

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>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/md/dm.c