All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Martin K. Petersen" <martin.petersen@oracle.com>
To: "Darrick J. Wong" <darrick.wong@oracle.com>
Cc: axboe@kernel.dk, hch@infradead.org, martin.petersen@oracle.com,
	linux-api@vger.kernel.org, linux-kernel@vger.kernel.org,
	shane.seymour@hpe.com, bfields@fieldses.org,
	linux-fsdevel@vger.kernel.org, jlayton@poochiereds.net
Subject: Re: [PATCH v5 2/2] block: create ioctl to discard-or-zeroout a range of blocks
Date: Thu, 10 Dec 2015 12:38:18 -0500	[thread overview]
Message-ID: <yq1y4d22ohh.fsf@sermon.lab.mkp.net> (raw)
In-Reply-To: <20151208062111.21427.30921.stgit@birch.djwong.org> (Darrick J. Wong's message of "Mon, 07 Dec 2015 22:21:11 -0800")

>>>>> "Darrick" == Darrick J Wong <darrick.wong@oracle.com> writes:

Darrick> Create a new ioctl to expose the block layer's newfound ability
Darrick> to issue either a zeroing discard, a WRITE SAME with a zero
Darrick> page, or a regular write with the zero page.  This BLKZEROOUT2
Darrick> ioctl takes {start, length, flags} as parameters.  So far, the
Darrick> only flag available is to enable the zeroing discard part --
Darrick> without it, the call invokes the old BLKZEROOUT behavior.
Darrick> start and length have the same meaning as in BLKZEROOUT.

Darrick> This new ioctl also invalidates the page cache correctly on
Darrick> account of the previous patch in the series.

Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>

-- 
Martin K. Petersen	Oracle Linux Engineering

WARNING: multiple messages have this Message-ID (diff)
From: "Martin K. Petersen" <martin.petersen-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
To: "Darrick J. Wong" <darrick.wong-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
Cc: axboe-tSWWG44O7X1aa/9Udqfwiw@public.gmane.org,
	hch-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org,
	martin.petersen-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org,
	linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	shane.seymour-ZPxbGqLxI0U@public.gmane.org,
	bfields-uC3wQj2KruNg9hUCZPvPmw@public.gmane.org,
	linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	jlayton-vpEMnDpepFuMZCB2o+C8xQ@public.gmane.org
Subject: Re: [PATCH v5 2/2] block: create ioctl to discard-or-zeroout a range of blocks
Date: Thu, 10 Dec 2015 12:38:18 -0500	[thread overview]
Message-ID: <yq1y4d22ohh.fsf@sermon.lab.mkp.net> (raw)
In-Reply-To: <20151208062111.21427.30921.stgit-PTl6brltDGh4DFYR7WNSRA@public.gmane.org> (Darrick J. Wong's message of "Mon, 07 Dec 2015 22:21:11 -0800")

>>>>> "Darrick" == Darrick J Wong <darrick.wong-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org> writes:

Darrick> Create a new ioctl to expose the block layer's newfound ability
Darrick> to issue either a zeroing discard, a WRITE SAME with a zero
Darrick> page, or a regular write with the zero page.  This BLKZEROOUT2
Darrick> ioctl takes {start, length, flags} as parameters.  So far, the
Darrick> only flag available is to enable the zeroing discard part --
Darrick> without it, the call invokes the old BLKZEROOUT behavior.
Darrick> start and length have the same meaning as in BLKZEROOUT.

Darrick> This new ioctl also invalidates the page cache correctly on
Darrick> account of the previous patch in the series.

Reviewed-by: Martin K. Petersen <martin.petersen-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>

-- 
Martin K. Petersen	Oracle Linux Engineering

  reply	other threads:[~2015-12-10 17:38 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-08  6:21 [PATCH v5 1/2] block: invalidate the page cache when issuing BLKZEROOUT Darrick J. Wong
2015-12-08  6:21 ` Darrick J. Wong
2015-12-08  6:21 ` [PATCH v5 2/2] block: create ioctl to discard-or-zeroout a range of blocks Darrick J. Wong
2015-12-08  6:21   ` Darrick J. Wong
2015-12-10 17:38   ` Martin K. Petersen [this message]
2015-12-10 17:38     ` Martin K. Petersen
2015-12-14 16:32   ` Christoph Hellwig
2015-12-14 16:32     ` Christoph Hellwig
2015-12-10 17:37 ` [PATCH v5 1/2] block: invalidate the page cache when issuing BLKZEROOUT Martin K. Petersen
2015-12-10 17:37   ` Martin K. Petersen
2015-12-14 16:32 ` Christoph Hellwig
2015-12-14 16:32   ` Christoph Hellwig
2015-12-15  0:04 ` Seymour, Shane M
2015-12-15  0:04   ` Seymour, Shane M

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=yq1y4d22ohh.fsf@sermon.lab.mkp.net \
    --to=martin.petersen@oracle.com \
    --cc=axboe@kernel.dk \
    --cc=bfields@fieldses.org \
    --cc=darrick.wong@oracle.com \
    --cc=hch@infradead.org \
    --cc=jlayton@poochiereds.net \
    --cc=linux-api@vger.kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=shane.seymour@hpe.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.