From: Michael S. Tsirkin Date: Thu, 15 Jul 2010 12:19:12 +0000 (+0300) Subject: vhost-net: avoid flush under lock X-Git-Tag: v2.6.35-rc6~15^2~5^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1680e9063ea28099a1efa8ca11cee069cc7a9bc3;p=pandora-kernel.git vhost-net: avoid flush under lock We flush under vq mutex when changing backends. This creates a deadlock as workqueue being flushed needs this lock as well. https://bugzilla.redhat.com/show_bug.cgi?id=612421 Drop the vq mutex before flush: we have the device mutex which is sufficient to prevent another ioctl from touching the vq. Signed-off-by: Michael S. Tsirkin --- Reading git-diff-tree failed