From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (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 D1734BA4A; Wed, 30 Oct 2024 05:08:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.11.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730264924; cv=none; b=m/3oDsjgYjv4rxzlfOryPbdUIOD7A6AFAplZRx7TS1iPxOU5xdR1a7mGMAM2ljJeqVt/NHY/03Mn/ptrOMDkk0TdU2dKv1LGaNzIg6o8gVBeVFpDvrvfIzT4uo5gm5YODo9v8n2ew1GqHKRLvIOd4fDrqjHLNcKyzD9/SzBu3Hc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730264924; c=relaxed/simple; bh=oTV+OApjCbgqpjKmh5o2hvIxR+1lcwYs8ftva5LkNTA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=C5opZx/4npi8z1AS3V4/Z1zaHZc7qZ7vJKkVRq/PCIUvBKlHWCWxcurHzXWoENkvEG+2XH51HI134DPJTnPOYEmIr8h3EVreuipM5RpP3tLJvbGOsvDGE2KGtvM/KoIBYOQxab8OO3Hc4l6f4AmO1JAeZ7aFF7+cnYXNUDldjsY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.client-ip=213.95.11.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id D3BCE227A8E; Wed, 30 Oct 2024 06:08:38 +0100 (CET) Date: Wed, 30 Oct 2024 06:08:38 +0100 From: Christoph Hellwig To: Kanchan Joshi Cc: Keith Busch , Anuj Gupta , axboe@kernel.dk, hch@lst.de, martin.petersen@oracle.com, asml.silence@gmail.com, anuj1072538@gmail.com, brauner@kernel.org, jack@suse.cz, viro@zeniv.linux.org.uk, io-uring@vger.kernel.org, linux-nvme@lists.infradead.org, linux-block@vger.kernel.org, gost.dev@samsung.com, linux-scsi@vger.kernel.org, vishak.g@samsung.com, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v5 06/10] io_uring/rw: add support to send metadata along with read/write Message-ID: <20241030050838.GB32598@lst.de> References: <20241029162402.21400-1-anuj20.g@samsung.com> <20241029162402.21400-7-anuj20.g@samsung.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: User-Agent: Mutt/1.5.17 (2007-11-01) On Wed, Oct 30, 2024 at 10:35:19AM +0530, Kanchan Joshi wrote: > if (sqe->meta_type) > { > if (type1(sqe->meta_type)) > process(type1); > if (type2(sqe>meta_type)) > process(type1); > } Ensuring that all these are incompatible, which doesn't exactly scale. So as is this weird meta_type thing (especially overloading the meta name which is unfortuntely) feels actively harmful.