Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3414662ybc; Thu, 21 Nov 2019 08:02:16 -0800 (PST) X-Google-Smtp-Source: APXvYqxx+JkfhFtZtHbqn99Y7WE1XQo3vLwaZKSH7jLBAAO0YyTs82ZRVWCq1gTfj2DEl/K7QKEH X-Received: by 2002:a17:906:938d:: with SMTP id l13mr15053046ejx.74.1574352136449; Thu, 21 Nov 2019 08:02:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574352136; cv=none; d=google.com; s=arc-20160816; b=K04NmTFxR83hphyMLvC08Co4Xcl3WqZgyozBGnY/bsnk7zUWcModBIaP+s2NJISv9m GTq/jksOCG9VFivJ44PdCU/8m4t1WtuzXm/TQ0Ws02KHKYqHqSTdmqg7mvB8gl4YkQUr en35AyUASGnAIRZs8Z1BpkVFH8Sp7c2882OsFZs8vS6NbAkDEFSqR0Kka4xeThIM51l+ ukyWfZsu3XvGlZKIUyVsZ8xvfisAgoqCJEN3wp17vN2QH7xoySOkvIP6854bIs/rQfUm wZJNv8r48diwwClR4/kUARDjffzXhNB8nkRp25CK5XY42jTQI79IhWFEMrhf+GSny8Lr RNPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition:user-agent :in-reply-to:mime-version:references:message-id:subject:cc:to:from :date:dkim-signature; bh=fl5jon/Xn0As09tGosG/4/lknhZw/odWV00qKChGNfE=; b=Q6SBtAXlaUq5LAqzcX6SzmRYcSTsp9ciz4tKfNmk+MAk/2PyWbPQIDDSag2c9pxLeV 20DcuaOpox91v/O0p6IYnKQ9uG1ZCZFpFIdNaykLIpe/qX75Npe6WP1ttWv4kmJ7CrzW WspkKwSUyVETQm0bTxrw27/wn850nuc9Nhk9tshrQWsTVSAXcFKF1ZeYxTHmPURPkMeE Q1Y1e1k/4ar1hRb35ZOjiFaMvoTnmj7eGu60zUM22cxVb1kDd3UPejktp3+kPW7R/jew +YzMNICNgO17zxH747rO15Tatoeyd47MvUVb6NRMewsUJ98A2bPkzYBvyy2pkYoTtrBO AIuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=DmhToz9I; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q20si2015618eja.339.2019.11.21.08.01.51; Thu, 21 Nov 2019 08:02:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=DmhToz9I; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726992AbfKUQAx (ORCPT + 99 others); Thu, 21 Nov 2019 11:00:53 -0500 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:52612 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726976AbfKUQAx (ORCPT ); Thu, 21 Nov 2019 11:00:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1574352052; 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=fl5jon/Xn0As09tGosG/4/lknhZw/odWV00qKChGNfE=; b=DmhToz9IVhddrl41SMmOyzVAl14AHaPRCv0bo9OJbYvo21j2xCabKtPhYRK/jGgTMwdExB 6i24sIG6zoq1zgqKupF/51emmatGyj9NLYyTnJhZEqdIKbsKjppyV2BbfaWTFXZ08jaktc vBrOHbdKM8kLEdEYnKpuFbzenz+44ew= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-220-2dU94oSiO1SQ9yuKpiU7UA-1; Thu, 21 Nov 2019 11:00:50 -0500 X-MC-Unique: 2dU94oSiO1SQ9yuKpiU7UA-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C1644189DAF9; Thu, 21 Nov 2019 16:00:49 +0000 (UTC) Received: from localhost (ovpn-117-83.ams2.redhat.com [10.36.117.83]) by smtp.corp.redhat.com (Postfix) with ESMTP id 970611823F; Thu, 21 Nov 2019 16:00:46 +0000 (UTC) Date: Thu, 21 Nov 2019 16:00:45 +0000 From: Stefan Hajnoczi To: Vivek Goyal Cc: virtio-fs@redhat.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, dgilbert@redhat.com, miklos@szeredi.hu Subject: Re: [PATCH 2/4] virtiofs: Add an index to keep track of first request queue Message-ID: <20191121160045.GD445244@stefanha-x1.localdomain> References: <20191115205705.2046-1-vgoyal@redhat.com> <20191115205705.2046-3-vgoyal@redhat.com> MIME-Version: 1.0 In-Reply-To: <20191115205705.2046-3-vgoyal@redhat.com> User-Agent: Mutt/1.12.1 (2019-06-15) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Mimecast-Spam-Score: 0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="NtwzykIc2mflq5ck" Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --NtwzykIc2mflq5ck Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Nov 15, 2019 at 03:57:03PM -0500, Vivek Goyal wrote: > @@ -990,7 +994,7 @@ static int virtio_fs_enqueue_req(struct virtio_fs_vq = *fsvq, > static void virtio_fs_wake_pending_and_unlock(struct fuse_iqueue *fiq) > __releases(fiq->lock) > { > -=09unsigned int queue_id =3D VQ_REQUEST; /* TODO multiqueue */ > +=09unsigned int queue_id; > =09struct virtio_fs *fs; > =09struct fuse_req *req; > =09struct virtio_fs_vq *fsvq; Sorry, I removed too much context in my reply. This TODO... > @@ -1004,6 +1008,7 @@ __releases(fiq->lock) > =09spin_unlock(&fiq->lock); > =20 > =09fs =3D fiq->priv; > +=09queue_id =3D fs->first_reqq_idx; ...should be moved here. --NtwzykIc2mflq5ck Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEhpWov9P5fNqsNXdanKSrs4Grc8gFAl3WtK0ACgkQnKSrs4Gr c8gQ3Af+PW0BnVxXMs0ogKUzltp1vxcPYfq4/js7a6Q7fcsgCdJFpoDIxKkfC1t0 /N8JzkRrlqCdSBJ9Y4dvTl7jE4eSK/gVTBcjPt/BM0UY4vr5uLVD4lEtBI56yman Nz4nZfZ2llDrIBy1mJy1lih/7bzt/q+qLKwkTKytDpJ9B+cFAJNZzLkFRPni+whc 2rooMFvXYAa7r6fCV0SjtL8RHCK4G2d12GdWsR0/8bJjxCBW6ponacxps7JWn8fi soqP8w5UNmGKAvYZmIkDLOHM7HhpdBKqInNQ4e6ZJCawPNvsKOcv3b+dqrcfgTDe iKEo4xRR0AEwcKybfAjhs62bsVLopg== =UlMv -----END PGP SIGNATURE----- --NtwzykIc2mflq5ck--