dm - get rid of excessive locking and redundancy
authorAlex Hornung <ahornung@gmail.com>
Thu, 14 Jul 2011 18:43:15 +0000 (19:43 +0100)
committerAlex Hornung <ahornung@gmail.com>
Sat, 16 Jul 2011 17:36:32 +0000 (18:36 +0100)
commitba65987cf1e7af06cfd4295d0bd5e67e3469e4a2
tree9abed80f9c97071301e1c5ac2a98e5fcdee1a7d1
parentce55ad52ea58670c349f8eac2ec7535b91a42d7f
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.
sys/dev/disk/dm/device-mapper.c
sys/dev/disk/dm/dm_dev.c
sys/dev/disk/dm/dm_ioctl.c