pnfsblock: don't spinlock when freeing block_dev
authorPeng Tao <bergwolf@gmail.com>
Thu, 12 Jan 2012 15:18:47 +0000 (23:18 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 26 Jan 2012 00:13:36 +0000 (16:13 -0800)
commit7e0f9f47b49048c1a809a9bfff85002cb7fbf8e3
tree08b1405b75db24ee83e0579be613b5a42ecee0dd
parentae6481331e29dd7a055c70b7abaaef9e01c60ced
pnfsblock: don't spinlock when freeing block_dev

commit 93a3844ee0f843b05a1df4b52e1a19ff26b98d24 upstream.

bl_free_block_dev() may sleep. We can not call it with spinlock held.
Besides, there is no need to take bm_lock as we are last user freeing bm_devlist.

Signed-off-by: Peng Tao <peng_tao@emc.com>
Signed-off-by: Benny Halevy <bhalevy@tonian.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/nfs/blocklayout/blocklayout.c