]> git.baikalelectronics.ru Git - kernel.git/commit
vhost: use USER_DS in vhost_worker thread
authorJens Freimann <jfrei@linux.vnet.ibm.com>
Tue, 26 Jun 2012 00:59:58 +0000 (00:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Jun 2012 04:10:56 +0000 (21:10 -0700)
commit4619625fd0ba98a5b9a58565a1b4b672b0737d7b
tree0939e0cabb626b4258e53a08f7a7713d534dfab5
parente261d2b0e8a7212d35d71faf006a0956e92e7104
vhost: use USER_DS in vhost_worker thread

On some architectures address spaces are set up in a way that this is
not necessary to work properly but on some others (like s390) it is.
Make sure we operate on the user address space to allow copy_xxx_user()
from the vhost_worker() thread by setting it explicitly before calling
use_mm() and revert it after unuse_mm().

Signed-off-by: Jens Freimann <jfrei@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/vhost/vhost.c