tcm_vhost: Refactor the lock nesting rule
authorAsias He <asias@redhat.com>
Thu, 25 Apr 2013 07:35:20 +0000 (15:35 +0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 25 Apr 2013 08:05:52 +0000 (01:05 -0700)
commitf2b7daf5b13f69ac09e706fb5b906478212a4100
tree149b7d34518312ef46c6d75fce96bdcfa6628a21
parentd3682b1aeba088957a210e3abc2c71dba63d6def
tcm_vhost: Refactor the lock nesting rule

We want to use tcm_vhost_mutex to make sure hotplug/hotunplug will not
happen when set_endpoint/clear_endpoint is in process.

Signed-off-by: Asias He <asias@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/vhost/tcm_vhost.c