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 46EC2627F8 for ; Tue, 19 Mar 2024 01:39: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=1710812368; cv=none; b=mByBJ7wWl6PVu3Eua4GLwRFqjWHJpeA56f3Gdjjr4Woeb0VGMpJXGL3vqU2JC2Gn0OH8calh1pLmUqGXKkPfDAeu8MD7tWSpe7nysU8FPI/NddnPWEbURX1Ed0ShHB/GaQLgtiUWMM8Q9Sk5cYsSDuyxVIBa31SbnZaz4bx97mE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710812368; c=relaxed/simple; bh=FX/W9kYt4wpumeWeydhxdL7Tb+dKd7OUpz7y4q6Jp9s=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=AeHkMN452CdEAFONs6g8ZV3bWI4dC8ca9D/p6LTP2XsQvm4cicA+e2yiHy5CF3n55VFRCAPqPiBbk1bmu6jP8tQhZgvdiFZVuvGqB0c8p+v4do2gC3Kx3PWv2ttq2TF4KzVqXkc42UAM8wQYEYULGPhItRpxm1I6UzIn8R8GaFQ= 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=E6He6pb/; 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="E6He6pb/" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1710812366; 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=lS+7tdhdSTksI9cD0YlCS1mg6Uvs8VEq9kD6hkroSaE=; b=E6He6pb/u/4hMytDXisc6irAuqvOpNtKZz1eojAGRMd4V+XlriW6PKCOwoUkQ/ZXSQTR20 I3ZfjSQ1t3eWe7hPGct0GSzm+xL46gW/Edl29Ij2FHLuZixJXeqf/ZkLVvsHs61zbPgtKI etO7/9fgddm0hJGtCG3h50V4s5Imgeo= 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-56-MPEBNVfiMaS9F0ZggbBAOQ-1; Mon, 18 Mar 2024 21:39:22 -0400 X-MC-Unique: MPEBNVfiMaS9F0ZggbBAOQ-1 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 40E32101A552; Tue, 19 Mar 2024 01:39:22 +0000 (UTC) Received: from fedora (unknown [10.72.116.95]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2AA6C1121306; Tue, 19 Mar 2024 01:39:18 +0000 (UTC) Date: Tue, 19 Mar 2024 09:39:11 +0800 From: Ming Lei To: Pavel Begunkov Cc: io-uring@vger.kernel.org, linux-block@vger.kernel.org, Jens Axboe , Kanchan Joshi Subject: Re: [PATCH v3 04/13] io_uring/cmd: introduce io_uring_cmd_complete Message-ID: References: <82ff8a45f2c3eb5f3a04a33f0692e5e4a1320455.1710799188.git.asml.silence@gmail.com> Precedence: bulk X-Mailing-List: linux-block@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: <82ff8a45f2c3eb5f3a04a33f0692e5e4a1320455.1710799188.git.asml.silence@gmail.com> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.3 On Mon, Mar 18, 2024 at 10:00:26PM +0000, Pavel Begunkov wrote: > io_uring_cmd_complete() does exactly what io_uring_cmd_done() does, that > is completing the request, but doesn't ask for issue_flags argument. We > have a couple of users hardcoding some random issue_flags values in > drivers, which they absolutely should not do. This function will be used > to get rid of them. Also, add comments warning users that they're only > allowed to pass issue_flags that were given from io_uring. > > Signed-off-by: Pavel Begunkov Reviewed-by: Ming Lei Thanks Ming