sys/dev/disk/dm: Fix/refactor TAILQ_HEAD structure
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sun, 8 Nov 2015 07:41:12 +0000 (16:41 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sun, 8 Nov 2015 14:32:10 +0000 (23:32 +0900)
commit4e3596722fc3e1ae357acfb89386851d105078c1
treee3b71e921897f402f6d6674dccdf649df46fe773
parentf3c99fcee35668b893fbfd8113e8a6668d4ba6da
sys/dev/disk/dm: Fix/refactor TAILQ_HEAD structure

Some minor fixes.

Initialize TAILQs in init() since they are removed and freed
in uninit(). Not doing it in init() works only when init() is
guaranteed to be called once.
sys/dev/disk/dm/dm.h
sys/dev/disk/dm/dm_dev.c
sys/dev/disk/dm/dm_pdev.c
sys/dev/disk/dm/dm_target.c