From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 1B741174EFC; Tue, 10 Sep 2024 08:02:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725955342; cv=none; b=tRskIz8Iz6WipsLfcTEuAIOkQxunJORkX25Fm1Z0Y5MadUOq97i7qNFQgymFktmBKWUad5+I+EtAq75pJY55wxF6WRlId5oYhNgsnnfel0V4nFqsm8ofERE02NqT/pQ9vU6WNpYJBtQL3cxQpy4sgaLxFmqum94KDysqhdzFbiA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725955342; c=relaxed/simple; bh=vTz3MV9w6m6pfeY8ONMFTdEGEOUJYAfZxsmwK2qeTXg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=syFzmRKdmwWsciy9NOjVzZgljlLffocc0mBNCEa6KplYaO+O1KUdvACwyNIvyZNocDdq1NSY7f7MDo61Xoj74tiyj1yiSLnJiyUf9N2z9KrDzvs9FvF0HwNkkYKum1stcFI9UqmUUeqdc1tpIzCIMI5qnlj8vu20PEMYVuJdltA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=y3ge0A8+; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="y3ge0A8+" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=0ia0RjKuVOWgdJ6dtAbKCY9WS/3lhSpvP+9a6dXQbxI=; b=y3ge0A8+fysNL8GCRK4sCRcaxL nIzfT1+aWy4jbqu1ip9AXtmaOktM2OX+cYLtDe29Gz3/WoWr75YErc1NHLJMCS5TxPthPkTPEZwyE QVS8iX0rXZJR0gS7cn4W9URTsZMLjeMI9fNBsSVhb+Sx7ChQtLM7W0t9jGUz48qfZH+E5Vdn6j2Gp xmTvfJ5EtB5yKF+iTHQHu7H2VGwlEweAsqUmjRlR6tEu/M+uEq27/+f0OrmXYX6SELEbzTQD4Es5t fP9JEzIVWzz3pl47ido0OIZg3dVxo1AJ5YPWSZf1uuL3iicASrFxJ5kqf8L3n86jrygBdvAiPXGMi Vh26s7JQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1snvpM-00000004iZo-2EVM; Tue, 10 Sep 2024 08:02:20 +0000 Date: Tue, 10 Sep 2024 01:02:20 -0700 From: Christoph Hellwig To: Pavel Begunkov Cc: io-uring@vger.kernel.org, Jens Axboe , Conrad Meyer , linux-block@vger.kernel.org, linux-mm@kvack.org, Christoph Hellwig Subject: Re: [PATCH v4 8/8] block: implement async write zero pages command Message-ID: References: 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: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html On Fri, Sep 06, 2024 at 11:57:25PM +0100, Pavel Begunkov wrote: > Add a command that writes the zero page to the drive. Apart from passing > the zero page instead of actual data it uses the normal write path and > doesn't do any further acceleration, nor it requires any special > hardware support. The indended use is to have a fallback when > BLOCK_URING_CMD_WRITE_ZEROES is not supported. That's just a horrible API. The user should not have to care if the kernel is using different kinds of implementations.