]> git.baikalelectronics.ru Git - kernel.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)
committerMike Snitzer <snitzer@redhat.com>
Mon, 10 Nov 2014 20:25:29 +0000 (15:25 -0500)
commit7a4f62ef3fa7acef43b8ae252903d218ee17dbb9
treea94881ff00d7e3ab5d42544670c77a6bff8224ef
parent808fe9f79e58592434f52213fae2ac3693aa0196
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