Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1407809
| From | Sitsofe Wheeler <sitsofe@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: BLKZEROOUT not zeroing md dev on VMDK |
| Date | 2016-05-27 06:50 +0200 |
| Message-ID | <rDhSF-7hl-3@gated-at.bofh.it> (permalink) |
| References | <rAiid-89L-15@gated-at.bofh.it> <rDhpE-74E-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 27 May 2016 at 05:18, Darrick J. Wong <darrick.wong@oracle.com> wrote:
>
> It's possible that the pvscsi device advertised WRITE SAME, but if the device
> sends back ILLEGAL REQUEST then the SCSI disk driver will set
> write_same_max_bytes=0. Subsequent BLKZEROOUT attempts will then issue writes
> of zeroes to the drive.
Thanks for following up on this but that's not what happens on the md
device - you can go on to issue as many BLKZEROOUT requests as you
like but the md disk is never zeroed nor is an error returned.
I filed a bug at https://bugzilla.kernel.org/show_bug.cgi?id=118581
(see https://bugzilla.kernel.org/show_bug.cgi?id=118581#c6 for
alternative reproduction steps that use scsi_debug and can be reworked
to impact device mapper) and Shaohua Li noted that
blkdev_issue_write_same could return 0 even when the disk didn't
support write same (see
https://bugzilla.kernel.org/show_bug.cgi?id=118581#c8 ).
Shaohua went on to create a patch for this ("block: correctly fallback
for zeroout" - https://patchwork.kernel.org/patch/9137311/ ) which has
yet to be reviewed.
--
Sitsofe | http://sucs.org/~sits/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
BLKZEROOUT not zeroing md dev on VMDK Sitsofe Wheeler <sitsofe@gmail.com> - 2016-05-19 00:40 +0200
Re: BLKZEROOUT not zeroing md dev on VMDK "Darrick J. Wong" <darrick.wong@oracle.com> - 2016-05-27 06:20 +0200
Re: BLKZEROOUT not zeroing md dev on VMDK Sitsofe Wheeler <sitsofe@gmail.com> - 2016-05-27 06:50 +0200
Re: BLKZEROOUT not zeroing md dev on VMDK Tom Yan <tom.ty89@gmail.com> - 2016-05-27 11:40 +0200
csiph-web