mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 10:54:35 +03:00
DLPX-44812 integrate EP-220 large memory scalability
This commit is contained in:
committed by
Brian Behlendorf
parent
616fa7c02b
commit
a6255b7fce
+6
-5
@@ -43,6 +43,7 @@
|
||||
#include <sys/arc.h>
|
||||
#include <sys/zil.h>
|
||||
#include <sys/dsl_scan.h>
|
||||
#include <sys/abd.h>
|
||||
#include <sys/zvol.h>
|
||||
#include <sys/zfs_ratelimit.h>
|
||||
|
||||
@@ -999,16 +1000,16 @@ vdev_probe_done(zio_t *zio)
|
||||
vps->vps_readable = 1;
|
||||
if (zio->io_error == 0 && spa_writeable(spa)) {
|
||||
zio_nowait(zio_write_phys(vd->vdev_probe_zio, vd,
|
||||
zio->io_offset, zio->io_size, zio->io_data,
|
||||
zio->io_offset, zio->io_size, zio->io_abd,
|
||||
ZIO_CHECKSUM_OFF, vdev_probe_done, vps,
|
||||
ZIO_PRIORITY_SYNC_WRITE, vps->vps_flags, B_TRUE));
|
||||
} else {
|
||||
zio_buf_free(zio->io_data, zio->io_size);
|
||||
abd_free(zio->io_abd);
|
||||
}
|
||||
} else if (zio->io_type == ZIO_TYPE_WRITE) {
|
||||
if (zio->io_error == 0)
|
||||
vps->vps_writeable = 1;
|
||||
zio_buf_free(zio->io_data, zio->io_size);
|
||||
abd_free(zio->io_abd);
|
||||
} else if (zio->io_type == ZIO_TYPE_NULL) {
|
||||
zio_t *pio;
|
||||
zio_link_t *zl;
|
||||
@@ -1126,8 +1127,8 @@ vdev_probe(vdev_t *vd, zio_t *zio)
|
||||
for (l = 1; l < VDEV_LABELS; l++) {
|
||||
zio_nowait(zio_read_phys(pio, vd,
|
||||
vdev_label_offset(vd->vdev_psize, l,
|
||||
offsetof(vdev_label_t, vl_pad2)),
|
||||
VDEV_PAD_SIZE, zio_buf_alloc(VDEV_PAD_SIZE),
|
||||
offsetof(vdev_label_t, vl_pad2)), VDEV_PAD_SIZE,
|
||||
abd_alloc_for_io(VDEV_PAD_SIZE, B_TRUE),
|
||||
ZIO_CHECKSUM_OFF, vdev_probe_done, vps,
|
||||
ZIO_PRIORITY_SYNC_READ, vps->vps_flags, B_TRUE));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user