* Determines whether a vdev_trim_thread() should be stopped. */
| 165 | * Determines whether a vdev_trim_thread() should be stopped. |
| 166 | */ |
| 167 | static boolean_t |
| 168 | vdev_trim_should_stop(vdev_t *vd) |
| 169 | { |
| 170 | return (vd->vdev_trim_exit_wanted || !vdev_writeable(vd) || |
| 171 | vd->vdev_detached || vd->vdev_top->vdev_removing); |
| 172 | } |
| 173 | |
| 174 | /* |
| 175 | * Determines whether a vdev_autotrim_thread() should be stopped. |
no test coverage detected