From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:60068) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmyRw-0002Ah-Sh for qemu-devel@nongnu.org; Fri, 25 Jan 2019 05:11:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gmyRw-00045C-0H for qemu-devel@nongnu.org; Fri, 25 Jan 2019 05:11:00 -0500 Sender: Paolo Bonzini References: <20190124141731.21509-1-kwolf@redhat.com> <20190124151105.GH4601@localhost.localdomain> <093415a1-c31c-c727-583f-bf3176621336@virtuozzo.com> <20190124154248.GK4601@localhost.localdomain> From: Paolo Bonzini Message-ID: <3cf90de9-5fc5-c24c-b232-bd0f564202a9@redhat.com> Date: Fri, 25 Jan 2019 11:10:56 +0100 MIME-Version: 1.0 In-Reply-To: <20190124154248.GK4601@localhost.localdomain> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] file-posix: Cache lseek result for data regions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf , Vladimir Sementsov-Ogievskiy Cc: "qemu-block@nongnu.org" , "mreitz@redhat.com" , "eblake@redhat.com" , "qemu-devel@nongnu.org" On 24/01/19 16:42, Kevin Wolf wrote: >> Recently Paolo asked me not to add more users of AioContext lock. Unfortunately >> I don't understand the whole picture around it.. Doesn't this apply here? >> https://lists.gnu.org/archive/html/qemu-devel/2018-12/msg03410.html > I don't know. Honestly I feel nobody except Paolo knows, because we > don't know his patches yet. This is true. On the other hand, the AioContext lock is only used in some special cases around block jobs and blk_set_aio_context, and in general the block devices already should not have any dependencies (unless they crept in without me noticing). In particular... > But raw doesn't have an s->lock yet, so I > think removing the AioContext lock involves some work on it anyway and > adding this doesn't really change the amount of work. ... BDRVRawState doesn't have any data that changes after open, does it? This is why it doesn't have an s->lock. Paolo