mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Revert r269093 which introduced physical zio alignment transform
Size of physical ZIOs must never be implicitly adjusted, it's a responsibility of a caller to make sure that such a ZIO has proper offset and size. Discussed with: delphij, gibbs MFC after: 2 weeks
This commit is contained in:
parent
ff0ba87247
commit
0908b20b7e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=274627
@ -2619,8 +2619,7 @@ zio_vdev_io_start(zio_t *zio)
|
||||
|
||||
align = 1ULL << vd->vdev_top->vdev_ashift;
|
||||
|
||||
if ((!(zio->io_flags & ZIO_FLAG_PHYSICAL) ||
|
||||
(vd->vdev_top->vdev_physical_ashift > SPA_MINBLOCKSHIFT)) &&
|
||||
if (!(zio->io_flags & ZIO_FLAG_PHYSICAL) &&
|
||||
P2PHASE(zio->io_size, align) != 0) {
|
||||
/* Transform logical writes to be a full physical block size. */
|
||||
uint64_t asize = P2ROUNDUP(zio->io_size, align);
|
||||
|
Loading…
Reference in New Issue
Block a user