]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
dm: remove dm_mutex after bkl conversion
authorMilan Broz <mbroz@redhat.com>
Thu, 13 Jan 2011 19:59:48 +0000 (19:59 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Thu, 13 Jan 2011 19:59:48 +0000 (19:59 +0000)
commit4a1aeb98297e17f4e0a8cdda919e63bf528b2e5d
tree4709346914cbdab86200c59241262d0ea2cbd204
parent5fc2ffeabb9ee0fc0e71ff16b49f34f0ed3d05b4
dm: remove dm_mutex after bkl conversion

This patch replaces dm_mutex with _minor_lock in dm_blk_close()
and then removes it.

During the BKL conversion, commit 6e9624b8caec290d28b4c6d9ec75749df6372b87
(block: push down BKL into .open and .release) pushed lock_kernel()
down into dm_blk_open/close calls.
Commit 2a48fc0ab24241755dc93bfd4f01d68efab47f5a
(block: autoconvert trivial BKL users to private mutex) converted it to a
local mutex, but _minor_lock is sufficient.

Signed-off-by: Milan Broz <mbroz@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm.c