From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3AE3A254858 for ; Tue, 25 Feb 2025 08:43:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740473009; cv=none; b=Rkuq/9TT5FmsJVlSjMjCjWlv0S1EZKxx9sUx+Up5p5LYge94bzHbDx/eOWk+cExKEHQAgDylrSqjfH7VatIhT6Q6K1pnaL8ZSszI1xyYFEWpkooh8mXopCmHTPkjmO8/w1s+18o/VkaXR6xWehGbsZqGB8K2JJJj5FYz5HShtPo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740473009; c=relaxed/simple; bh=EwSkPiax2nQRrPCxpOsz0KDV78FcihwyUxTGvoGy4Hw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=h7KdmUTqozOFMJR+ByFzmttoBRuaVw7yo3kRRTwpAXpkZFiGYI4ysbDuP+QG6P9N6JNWPcGHhOFYVRdb9UKbbf7+0M4F7D8zurIkK0pUYRrsfdRxvNrswAbVFxkUWCSoqQteVBGlqHtY9co/Fam8MCT/hEZexMS55zbfmZQuc4o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=hvPZh8YB; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="hvPZh8YB" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1740473006; 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=MiPu812lBAtvkJOlBNetdKjC9bnyjbYmyAww0yPGSUo=; b=hvPZh8YBZG3krZuZ358Lg5s/hb9dypwkaZbRmXP3NvFbv6cg6pgjKZFQOHrA000286Xcr6 EUoZAq/r36tj6shV0hc8VZ3QuPfOgy2d8ti9Ae1UBzId8QZYjJzorBRDzorbn7GrSXkXdO xx1mD96yv5jrWaE2I+ZgJdIBIetP5YY= Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-60-ZkmL1k5kORSqIQhZvhfoXw-1; Tue, 25 Feb 2025 03:43:22 -0500 X-MC-Unique: ZkmL1k5kORSqIQhZvhfoXw-1 X-Mimecast-MFC-AGG-ID: ZkmL1k5kORSqIQhZvhfoXw_1740472998 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (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 mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id B7A0F1800876; Tue, 25 Feb 2025 08:43:18 +0000 (UTC) Received: from fedora (unknown [10.72.120.31]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id A97371955BD4; Tue, 25 Feb 2025 08:43:12 +0000 (UTC) Date: Tue, 25 Feb 2025 16:43:06 +0800 From: Ming Lei To: Keith Busch Cc: asml.silence@gmail.com, axboe@kernel.dk, linux-block@vger.kernel.org, io-uring@vger.kernel.org, bernd@bsbernd.com, csander@purestorage.com, Keith Busch Subject: Re: [PATCHv5 02/11] io_uring/nop: reuse req->buf_index Message-ID: References: <20250224213116.3509093-1-kbusch@meta.com> <20250224213116.3509093-3-kbusch@meta.com> Precedence: bulk X-Mailing-List: io-uring@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250224213116.3509093-3-kbusch@meta.com> X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 On Mon, Feb 24, 2025 at 01:31:07PM -0800, Keith Busch wrote: > From: Keith Busch > > There is already a field in io_kiocb that can store a registered buffer > index, use that instead of stashing the value into struct io_nop. > > Signed-off-by: Keith Busch Reviewed-by: Ming Lei Thanks, Ming