From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bart Van Assche Subject: Re: [PATCH 4/6] tcm_vhost: Initial merge for vhost level target fabric driver Date: Thu, 05 Jul 2012 17:47:11 +0000 Message-ID: <4FF5D31F.90404@acm.org> References: <1341375846-27882-1-git-send-email-nab@linux-iscsi.org> <1341375846-27882-5-git-send-email-nab@linux-iscsi.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: target-devel , linux-scsi , lf-virt , kvm-devel , Stefan Hajnoczi , Zhi Yong Wu , Anthony Liguori , Paolo Bonzini , "Michael S. Tsirkin" , Christoph Hellwig , Jens Axboe , Hannes Reinecke To: "Nicholas A. Bellinger" Return-path: Received: from relay04ant.iops.be ([212.53.5.219]:48153 "EHLO relay04ant.iops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751885Ab2GERrX (ORCPT ); Thu, 5 Jul 2012 13:47:23 -0400 In-Reply-To: <1341375846-27882-5-git-send-email-nab@linux-iscsi.org> Sender: kvm-owner@vger.kernel.org List-ID: On 07/04/12 04:24, Nicholas A. Bellinger wrote: > +/* Fill in status and signal that we are done processing this command > + * > + * This is scheduled in the vhost work queue so we are called with the owner > + * process mm and can access the vring. > + */ > +static void vhost_scsi_complete_cmd_work(struct vhost_work *work) > +{ As far as I can see vhost_scsi_complete_cmd_work() runs on the context of a work queue kernel thread and hence doesn't have an mm context. Did I misunderstand something ? Bart.