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:59:28 +0000 Message-ID: <4FF5D600.4070002@acm.org> References: <1341375846-27882-1-git-send-email-nab@linux-iscsi.org> <1341375846-27882-5-git-send-email-nab@linux-iscsi.org> <4FF5D31F.90404@acm.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: In-Reply-To: <4FF5D31F.90404@acm.org> Sender: target-devel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On 07/05/12 17:47, Bart Van Assche wrote: > 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 ? Please ignore the above - I've found the answer in vhost_dev_ioctl() and vhost_dev_set_owner(). Bart.