Skip extra bcopy() when scrubbing vdev without redundancy.
According to profiler, this bcopy() can use about 10% of CPU time. MFC after: 2 weeks
This commit is contained in:
parent
360e8758b2
commit
b53f0399f2
@ -435,7 +435,8 @@ vdev_mirror_io_start(zio_t *zio)
|
||||
mm = vdev_mirror_map_init(zio);
|
||||
|
||||
if (zio->io_type == ZIO_TYPE_READ) {
|
||||
if ((zio->io_flags & ZIO_FLAG_SCRUB) && !mm->mm_replacing) {
|
||||
if ((zio->io_flags & ZIO_FLAG_SCRUB) && !mm->mm_replacing &&
|
||||
mm->mm_children > 1) {
|
||||
/*
|
||||
* For scrubbing reads we need to allocate a read
|
||||
* buffer for each child and issue reads to all
|
||||
|
Loading…
x
Reference in New Issue
Block a user