summaryrefslogtreecommitdiffstats
path: root/sys/cddl/compat/opensolaris/kern/opensolaris_taskq.c
Commit message (Collapse)AuthorAgeFilesLines
* opensolaris compat: add taskq_wait emulationavg2013-11-281-0/+6
| | | | MFC after: 10 days
* 734 taskq_dispatch_prealloc() desiredavg2013-11-261-20/+18
| | | | | | | | | | | | | | | | | | | | 943 zio_interrupt ends up calling taskq_dispatch with TQ_SLEEP illumos/illumos-gate@5aeb94743e3be0c51e86f73096334611ae3a058e Essentially FreeBSD taskqueues already operate in a mode that was added to Illumos with taskq_dispatch_ent change. We even exposed the superior FreeBSD interface as taskq_dispatch_safe. Now we just rename taskq_dispatch_safe to taskq_dispatch_ent and struct struct ostask to taskq_ent_t, so that code differences will be minimal. After this change sys/cddl/compat/opensolaris/sys/taskq.h header is no longer needed. Note that this commit is not an MFV because the upstream change was not individually committed to the vendor area. MFC after: 8 days
* opensolaris taskq: some cosmetic changesavg2013-11-261-4/+2
| | | | | | | | - drop trailing whitespace - remove redundant "extern" from function declarations - remove unused macro MFC after: 1 week
* Don't access task structure once we call task function.pjd2011-05-241-5/+0
| | | | | | | | The task structure might be no longer available. This also allows to eliminates the need for two tasks in the zio structure. Submitted by: anonymous MFC after: 2 weeks
* Finally... Import the latest open-source ZFS version - (SPA) 28.pjd2011-02-271-4/+16
| | | | | | | | | | | | | | | Few new things available from now on: - Data deduplication. - Triple parity RAIDZ (RAIDZ3). - zfs diff. - zpool split. - Snapshot holds. - zpool import -F. Allows to rewind corrupted pool to earlier transaction group. - Possibility to import pool in read-only mode. MFC after: 1 month
* Pass a format string to panic() and to taskqueue_start_threads().rpaulo2010-10-131-1/+1
| | | | Found with: clang
* Add task structure to zio and use it instead of allocating one.pjd2010-05-161-6/+29
| | | | | | | | | This eliminates the only place where we can sleep when calling zio_interrupt(). As a side-effect this can actually improve performance a little as we allocate one less thing for every I/O. Prodded by: kib MFC after: 1 week
* Partially MFp4 #176265 by pjd@:delphij2010-04-191-5/+12
| | | | | | | | | | | | - Properly initialize and destroy system_taskq. - Add a dummy implementation of taskq_create_proc(). Note: We do not currently use system_taskq in ZFS so this is mostly a no-op at this time. Proper system_taskq initialization is required by newer ZFS code. Ok'ed by: pjd MFC after: 2 weeks
* Remove OpenSolaris taskq port (it performs very poorly in our kernel) andpjd2009-08-171-0/+135
replace it with wrappers around our taskqueue(9). To make it possible implement taskqueue_member() function which returns 1 if the given thread was created by the given taskqueue. Approved by: re (kib)
OpenPOWER on IntegriCloud