Skip to content

Commit

Permalink
Don't use ZIO_FLAG_CONFIG_WRITER for TRIM ZIOs.
Browse files Browse the repository at this point in the history
There's no reason to use the ZIO_FLAG_CONFIG_WRITER flag for TRIM ZIOS.
Remove it.
  • Loading branch information
dechamps committed Sep 21, 2012
1 parent b3dac52 commit dabccd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/zfs/trim_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ trim_thread(void *arg)
mutex_exit(&spa->spa_trim_lock);

zio = zio_root(spa, NULL, NULL,
ZIO_FLAG_CONFIG_WRITER | ZIO_FLAG_CANFAIL);
ZIO_FLAG_CANFAIL);

spa_config_enter(spa, SCL_STATE, FTAG, RW_READER);
trim_map_commit(spa, zio, spa->spa_root_vdev);
Expand Down

0 comments on commit dabccd1

Please sign in to comment.