From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CBD2AEB64DC for ; Sun, 25 Jun 2023 12:25:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231591AbjFYMZp (ORCPT ); Sun, 25 Jun 2023 08:25:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231213AbjFYMZo (ORCPT ); Sun, 25 Jun 2023 08:25:44 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12651EB; Sun, 25 Jun 2023 05:25:43 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 818E260BB5; Sun, 25 Jun 2023 12:25:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5733EC433C0; Sun, 25 Jun 2023 12:25:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1687695941; bh=4eKzV/nEmEg6ZMH3mIV+cr00xbbqDh26+e+nlkU4oP8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=okLhX1rEZgAA6dkk3YBwFKFsZ0QncT8Cw/3ALC7q1q3qhkZu19jujYS5qUL3C/j3y Gr1FQeOgeT75mi466Vk2KmJ5cv/bFFfV6928UarKL7IP1cOQ+9GzRYZPGaay1gHtS2 Jq301l1B0g6/csoWt55hsD467zrTJ1+zco3FPQGQ= Date: Sun, 25 Jun 2023 14:25:38 +0200 From: Greg KH To: Qingsong Chen Cc: linux-kernel@vger.kernel.org, =?utf-8?B?55Sw5rSq5Lqu?= , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Martin Rodriguez Reboredo , Alice Ryhl , Vincenzo Palazzo , Asahi Lina , rust-for-linux@vger.kernel.org Subject: Re: [RFC PATCH 1/8] rust: kernel: add basic abstractions for device-mapper Message-ID: <2023062544-speech-impish-9308@gregkh> References: <20230625121657.3631109-1-changxian.cqs@antgroup.com> <20230625121657.3631109-2-changxian.cqs@antgroup.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230625121657.3631109-2-changxian.cqs@antgroup.com> Precedence: bulk List-ID: X-Mailing-List: rust-for-linux@vger.kernel.org On Sun, Jun 25, 2023 at 08:16:50PM +0800, Qingsong Chen wrote: > - Declare `vtable` for basic target operations. > - Wrap `target_type` to register/unregister target. > - Wrap `dm_target`/`dm_dev` to handle io request. > - Add a dummy `bio` wrapper. Shouldn't this be all different commits, and different files? A bio shouldn't be defined in the device_mapper.rs file, as that would prevent anyone else from accessing it. thanks, greg k-h