Don't treat TRIM requests returning ENOTSUP as an unexpected error.
MFC after: 1 month X-MFC-With: r265152
This commit is contained in:
parent
2c816214c0
commit
90763c1679
@ -2674,7 +2674,10 @@ zio_vdev_io_done(zio_t **ziop)
|
||||
zio->io_error = zio_handle_label_injection(zio, EIO);
|
||||
|
||||
if (zio->io_error) {
|
||||
if (!vdev_accessible(vd, zio)) {
|
||||
if (zio->io_error == ENOTSUP &&
|
||||
zio->io_type == ZIO_TYPE_FREE) {
|
||||
/* Not all devices support TRIM. */
|
||||
} else if (!vdev_accessible(vd, zio)) {
|
||||
zio->io_error = SET_ERROR(ENXIO);
|
||||
} else {
|
||||
unexpected_error = B_TRUE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user