From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AF2C2C35274 for ; Mon, 18 Dec 2023 15:35:36 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.656161.1024178 (Exim 4.92) (envelope-from ) id 1rFFeP-00016O-4i; Mon, 18 Dec 2023 15:35:25 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 656161.1024178; Mon, 18 Dec 2023 15:35:25 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rFFeP-00016H-25; Mon, 18 Dec 2023 15:35:25 +0000 Received: by outflank-mailman (input) for mailman id 656161; Mon, 18 Dec 2023 15:35:24 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rFFeO-00016B-AB for xen-devel@lists.xenproject.org; Mon, 18 Dec 2023 15:35:24 +0000 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 0e857379-9dbb-11ee-98eb-6d05b1d4d9a1; Mon, 18 Dec 2023 16:35:23 +0100 (CET) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-139-m3kEV4ygO-CxGpJECnICkg-1; Mon, 18 Dec 2023 10:35:15 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 5611B101A555; Mon, 18 Dec 2023 15:35:14 +0000 (UTC) Received: from redhat.com (unknown [10.39.194.189]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AE2A21121313; Mon, 18 Dec 2023 15:35:09 +0000 (UTC) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 0e857379-9dbb-11ee-98eb-6d05b1d4d9a1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1702913722; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=PDubdz9qL49hAN39OYCPIe6uR/1A8jW1md3mHWy8lFM=; b=FgMdLNJu4vbLoJXd+gXjbS2gKvya7IG3X83a7eibMIID6OwP5hu0foT6y+PKJKhTnddXNL 5Q8awOcsohUm16dGHk2zA+WVGvLTd6DTYtIUJnsT0BZBXN8CjsLOP+6v7zf68Otkl5x0fY 8udS5MpujNwwuFU9l9WKzl+7Ulwm9DQ= X-MC-Unique: m3kEV4ygO-CxGpJECnICkg-1 Date: Mon, 18 Dec 2023 16:35:08 +0100 From: Kevin Wolf To: Stefan Hajnoczi Cc: qemu-devel@nongnu.org, Philippe =?iso-8859-1?Q?Mathieu-Daud=E9?= , Vladimir Sementsov-Ogievskiy , Cleber Rosa , Xie Changlong , Paul Durrant , Ari Sundholm , Jason Wang , Eric Blake , John Snow , Eduardo Habkost , Wen Congyang , Alberto Garcia , Anthony Perard , "Michael S. Tsirkin" , Stefano Stabellini , qemu-block@nongnu.org, Juan Quintela , Paolo Bonzini , Coiby Xu , Fabiano Rosas , Hanna Reitz , Zhang Chen , Daniel =?iso-8859-1?Q?P=2E_Berrang=E9?= , Pavel Dovgalyuk , Peter Xu , Emanuele Giuseppe Esposito , Fam Zheng , Leonardo Bras , David Hildenbrand , Li Zhijian , xen-devel@lists.xenproject.org Subject: Re: [PATCH v2 02/14] scsi: assert that callbacks run in the correct AioContext Message-ID: References: <20231205182011.1976568-1-stefanha@redhat.com> <20231205182011.1976568-3-stefanha@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231205182011.1976568-3-stefanha@redhat.com> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.3 Am 05.12.2023 um 19:19 hat Stefan Hajnoczi geschrieben: > Since the removal of AioContext locking, the correctness of the code > relies on running requests from a single AioContext at any given time. > > Add assertions that verify that callbacks are invoked in the correct > AioContext. > > Signed-off-by: Stefan Hajnoczi Reviewed-by: Kevin Wolf