freebsd-dev/sys/cddl/compat/opensolaris
Steven Hartland 82ce008538 Reintroduce priority for the TRIM ZIOs instead of using the "NOW" priority
The changes how TRIM requests are generated to use ZIO_TYPE_FREE + a priority
instead of ZIO_TYPE_IOCTL, until processed by vdev_geom; only then is it
translated the required geom values. This reduces the amount of changes
required for FREE requests to be supported by the new IO scheduler. This
also eliminates the need for a specific DKIOCTRIM.

Also fixed FREE vdev child IO's from running ZIO_STAGE_VDEV_IO_DONE as part
of their schedule.

As the new IO scheduler can result in a request to execute one type of IO to
actually run a different type of IO it requires that zio_trim requests are
processed without holding the trim map lock (tm->tm_lock), as the free request
execute call may result in write request running hence triggering a
trim_map_write_start call, which takes the trim map lock and hence would result
in recused on no-recursive sx lock.

This is based off avg's original work, so credit to him.

MFC after:	1 month
2014-04-30 17:46:29 +00:00
..
kern Rename global cnt to vm_cnt to avoid shadowing. 2014-03-22 10:26:09 +00:00
rpc Our libc doesn't implement control method for XDR (only kernel does) and it 2009-08-20 00:05:29 +00:00
sys Reintroduce priority for the TRIM ZIOs instead of using the "NOW" priority 2014-04-30 17:46:29 +00:00