Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp542883rdb; Tue, 23 Jan 2024 07:21:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IFeLeeUJttYvNUtDT1PA4ifQpgDCcix+UsLK13U31R0XCQuLfJpboFCbgkioNKJvmhGwVqu X-Received: by 2002:ac2:548b:0:b0:50e:ca83:b00d with SMTP id t11-20020ac2548b000000b0050eca83b00dmr2446700lfk.69.1706023267606; Tue, 23 Jan 2024 07:21:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706023267; cv=pass; d=google.com; s=arc-20160816; b=C4plOQmn7irtzXuUfw/74lkDSGVwv0BzQI5PDiX+B29CK1pEdtYA/ysUHoUmGo5M8I mirDfGF3TrEJn2qvpPPctrQLwqXusVqnUaMQIClMfAh77S5oVHizYKiwOS7MFi43Wc+J PxP3L8Y0AP3w7Pn/dCt0kRXNKAdL5YXZmZK+38qVl+pFYcFKuNO4lPCAp/domRUHcXuY cudcVE8F297xINIVuXVqR8BZw1hOi3wBEWZtrFvmrhe0NPLSIrqbA9s7XPHvWdtliayk fMaS/9S0UpxhOlcm88xdiCigmRSMx56S+0MNAu2lGZxmYHnGHv6bUqSvo63rSBXwpfvT 2D5g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:in-reply-to:date :subject:cc:to:from:user-agent:references:dkim-signature; bh=rGn9arawL6VXVy2ok8i84OPEddY9NvmiVo7v4viWUQ0=; fh=Gwv026fuxyP8ApY82LhrRmHVCyLi0bCAxO7yNQfid9I=; b=G6anBMOQguRcwS+i035sotxE+WsZ2QNXM13SSM8LjnXnU27ZfHo8V9CMNRta6wuAK5 m4RjgZV9pLM91Xw85L01BJ6shYnN/jlE5kiVmVEjfLX3hZNER8J2rbwP1lFNZM06x0N9 KOzYCO9poItjfnvLdNPlAhsyj5VE7sV5/Tg8M0qqLcJLPHoQ0Cr6VSFkW92nF6aH793r QZ4D8wb4elnGJiHzlb2myl7gDbFL4Ww9s3irJO3LY1M9E2HXWAh8b48WiYoZ7ExUvjqy mYrw1XTDHiO8wB5ZXSwbHahC41RFtDNTgxdUdzuRyJrOUWllY6ig7NhAwvjqvUx+U2FK HcmA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@metaspace-dk.20230601.gappssmtp.com header.s=20230601 header.b=0AMbeG7F; arc=pass (i=1 dkim=pass dkdomain=metaspace-dk.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-35421-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35421-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id wn1-20020a170907068100b00a26ef29872dsi11547367ejb.1027.2024.01.23.07.21.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 07:21:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-35421-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@metaspace-dk.20230601.gappssmtp.com header.s=20230601 header.b=0AMbeG7F; arc=pass (i=1 dkim=pass dkdomain=metaspace-dk.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-35421-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35421-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id A2DF11F23AC0 for ; Tue, 23 Jan 2024 14:04:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 85D425FB9F; Tue, 23 Jan 2024 14:04:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=metaspace-dk.20230601.gappssmtp.com header.i=@metaspace-dk.20230601.gappssmtp.com header.b="0AMbeG7F" Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 60F715FB84 for ; Tue, 23 Jan 2024 14:03:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706018639; cv=none; b=nAFeHuiWO4WVzm011K6R1v7VXYmOibBbUr6ZUXoWDKcsTXYeDPgNNDAOzP80N/Y+E+7ip3rdbakok/FyBcHoEUndXBoQkQsb6xMoqbKGgmX+EDFWIByvGvGjaQk8KDIWRso+2AlJGvHKMWv/1YosLmcuL3xCqTk90pbK1wtxJY4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706018639; c=relaxed/simple; bh=WiDhZydkUg7/c4vU+lUs9zcwwnC3I1JZWZ/N5KklzHY=; h=References:From:To:Cc:Subject:Date:In-reply-to:Message-ID: MIME-Version:Content-Type; b=gqYDRux6CZRI7e/Z44aCONAjZn5mgde8yrQUHZQgSmqGbPntzQ5/GEWEiZhZQIgalY04813FP268dceZE84brzAF4eqnU3UeCoWQYbggn7B9PcS875McAELy0uYkywlTyTRiF5oPXnqFnD3U6JPWYJ8yrHHJzgHAwZEPObMMwQU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=metaspace.dk; spf=none smtp.mailfrom=metaspace.dk; dkim=pass (2048-bit key) header.d=metaspace-dk.20230601.gappssmtp.com header.i=@metaspace-dk.20230601.gappssmtp.com header.b=0AMbeG7F; arc=none smtp.client-ip=209.85.218.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=metaspace.dk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=metaspace.dk Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a29c4bbb2f4so406252466b.1 for ; Tue, 23 Jan 2024 06:03:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=metaspace-dk.20230601.gappssmtp.com; s=20230601; t=1706018636; x=1706623436; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:cc:to:from:user-agent:references:from:to:cc:subject:date :message-id:reply-to; bh=rGn9arawL6VXVy2ok8i84OPEddY9NvmiVo7v4viWUQ0=; b=0AMbeG7FhdvKz9UIvSM6fcwHyFIkyGctil7EBzNxvP0a9rExe3chpF9wvHSIQhnvkK fWBK7L/GcKtNke8aQqpDG7kgYOlpwINaM40MvEEgWVOvug89DEToMhCTG5fiIyIKYcT3 ByII4Ov0hpUfq66mhJhUNdt/IzlPPWbfj5HBLJp24ZeBIPCdbOVP6k8zuDrP3gfoGDHl 13m2G/6kKCU1RsklCFc1UoFkaDGBZVJhXFo2/IaqQsDhVl6oqAZ2hh8qsHDRAbZgLdU6 1gTHZksqo8B6p4C9zYl7qiH86J8gF0X70z6+R8y92iACejygaebx8QLx/zovPfPHugB3 4SeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706018636; x=1706623436; h=content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:cc:to:from:user-agent:references:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=rGn9arawL6VXVy2ok8i84OPEddY9NvmiVo7v4viWUQ0=; b=XTysTT80IHxHcvmmioR052Qs6ljXiiVYi1COZlFk2mFvIWyWgVX0/Y86vBidQ9MvZB Nh1KisW5niJ/vzkOK4I03ZeF0+RWtdfMyfcK+BDfw5cqseAhRZWdcLxpuO3y4AlVxAEv mFzCHFgefm70TkdPfga3JASx4or1OfP0LxuD5ZG/Nwh4fc8eINBuJAbBScj3emoHUYRF fiuProvpmvpV8rpAOKB2ibkYPVR4xSJqgUaIVWxug/4d2avodCkATziH10nDwsMvCt/t Gg39PSoJHyB513Fh1YXY/prHbUNbvtNpcWmjgJjJi6WuHv306q+UgA9ENG3An/ECUbDZ NERA== X-Gm-Message-State: AOJu0YzSVK9OJF7EzYuazn7SCUa+/fPEYkVNwvZKPlJ2lqgRPeTPTyne FegVyxn5nDK2mMNpfJnJWnze/Ut5zA8N/XIujtGeFbhDtipW22EJb0QJcIJeDsA= X-Received: by 2002:a17:907:3f20:b0:a28:a7b0:b46f with SMTP id hq32-20020a1709073f2000b00a28a7b0b46fmr3812814ejc.5.1706018636616; Tue, 23 Jan 2024 06:03:56 -0800 (PST) Received: from localhost ([79.142.230.34]) by smtp.gmail.com with ESMTPSA id w4-20020a170906130400b00a26f1e3093asm14415484ejb.49.2024.01.23.06.03.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 06:03:56 -0800 (PST) References: <20230503090708.2524310-1-nmi@metaspace.dk> <20230503090708.2524310-4-nmi@metaspace.dk> User-agent: mu4e 1.10.8; emacs 28.2.50 From: "Andreas Hindborg (Samsung)" To: Sergio =?utf-8?Q?Gonz=C3=A1lez?= Collado Cc: Benno Lossin , Jens Axboe , Christoph Hellwig , Keith Busch , Damien Le Moal , Hannes Reinecke , lsf-pc@lists.linux-foundation.org, rust-for-linux@vger.kernel.org, linux-block@vger.kernel.org, Matthew Wilcox , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?utf-8?Q?Bj=C3=B6rn?= Roy Baron , linux-kernel@vger.kernel.org, gost.dev@samsung.com Subject: Re: [RFC PATCH 03/11] rust: block: introduce `kernel::block::mq` module Date: Tue, 23 Jan 2024 15:03:09 +0100 In-reply-to: Message-ID: <87ede8jgeq.fsf@metaspace.dk> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Sergio Gonz=C3=A1lez Collado writes: > + /// Call to tell the block layer the capcacity of the device > + pub fn set_capacity(&self, sectors: u64) { > + unsafe { bindings::set_capacity(self.gendisk, sectors) }; > + } > > Nit in the comment: capcacity -> capacity Thanks! BR Andreas