From: "Paul Samon" Subject: A wrong assert in get_ioreq()? Date: Wed, 4 Jul 2007 19:05:20 +0800 Message-ID: <34cec8c90707040405x368042cdifacb300725fc0e5b@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0691096435==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0691096435== Content-Type: multipart/alternative; boundary="----=_Part_110024_27398802.1183547120940" ------=_Part_110024_27398802.1183547120940 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline In the function get_ioreq(), there is a line: ASSERT((v == current) || spin_is_locked(&d->arch.hvm_domain.ioreq.lock)); I don't think it should be ASSERT(v == current). we don't get the lock first, and I think we needn't it. Am I missing something? ------=_Part_110024_27398802.1183547120940 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
In the function get_ioreq(),  there is a line:
    ASSERT((v == current) || spin_is_locked(&d->arch.hvm_domain.ioreq.lock ));
I don't think it should be
    ASSERT(v == current).
we don't get the lock first, and I think we needn't it.
 
Am I missing something?
 
------=_Part_110024_27398802.1183547120940-- --===============0691096435== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0691096435==--