diskutil: ensure that we lock around disk_list access
authorJens Axboe <axboe@kernel.dk>
Thu, 2 Aug 2012 06:27:41 +0000 (08:27 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 2 Aug 2012 06:27:41 +0000 (08:27 +0200)
commit9ec7779f89d4dde9fe1e23d68abaefda54b35de7
tree1e57dd84d05333814bdb12fbb4df7edb6e3cb7b8
parent99614958d743d0fdea9b1875d3a41a5a51e9769d
diskutil: ensure that we lock around disk_list access

And also ensure that before we free the disk util structures,
we wait for the disk util thread to exit.

This is v2 of the patch. Commit feb41855 had a bug where it
would deadlock on the disk_util_mutex, when handling drives
that had slaves (lvm/md).

Signed-off-by: Jens Axboe <axboe@kernel.dk>
backend.c
diskutil.c
diskutil.h
iolog.h