git: dm - get rid of excessive locking and redundancy

看板DFBSD_commit作者時間14年前 (2011/07/17 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit ba65987cf1e7af06cfd4295d0bd5e67e3469e4a2 Author: Alex Hornung <ahornung@gmail.com> Date: Thu Jul 14 19:43:15 2011 +0100 dm - get rid of excessive locking and redundancy * Just use dev->si_drv1 for the strategy, disk ioctl and dump as the underlying device and 'dmv' is guaranteed not to go away. Keep the locked approach (dm_dev_lookup) for open, close, and mapper ioctls to ensure that we never rip out any node that's still in use. * This eliminates exclusive locking in the IO path, which should improve performance. Summary of changes: sys/dev/disk/dm/device-mapper.c | 25 +++++-------------------- sys/dev/disk/dm/dm_dev.c | 3 +++ sys/dev/disk/dm/dm_ioctl.c | 6 ++++-- 3 files changed, 12 insertions(+), 22 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ba65987cf1e7af06cfd4295d0bd5e67e3469e4a2 -- DragonFly BSD source repository
文章代碼(AID): #1E8T7l_q (DFBSD_commit)