zfs/include
Brian Behlendorf 7257ec4185 Fix taskq_wait() not waiting bug
I'm very surprised this has not surfaced until now.  But the taskq_wait()
implementation work only wait successfully the first time it was called.
Subsequent usage of taskq_wait() on the taskq would not wait.

The issue was caused by tq->tq_lowest_id being set to MAX_INT after the
first wait completed.  This caused subsequent waits which check that the
waiting id is less than the lowest taskq id to always succeed.  The fix
is to ensure that tq->tq_lowest_id is never set larger than tq->tq_next.id.

Additional fixes which were added to this patch include:
1) Fix a race by placing the taskq_wait_check() in the tq->tq_lock spinlock.
2) taskq_wait() should wait for the largest outstanding id.
3) Multiple spelling corrections.
4) Added taskq wait regression test to validate correct behavior.
2009-03-15 15:13:49 -07:00
..
asm Build system and packaging (RPM support) 2009-03-09 15:56:55 -07:00
fs Build system and packaging (RPM support) 2009-03-09 15:56:55 -07:00
linux Build system and packaging (RPM support) 2009-03-09 15:56:55 -07:00
rpc Minor bug fix in XDR code introduced in last minute change before landing. 2009-03-11 16:27:35 -07:00
sharefs Build system and packaging (RPM support) 2009-03-09 15:56:55 -07:00
sys Fix taskq_wait() not waiting bug 2009-03-15 15:13:49 -07:00
util Build system and packaging (RPM support) 2009-03-09 15:56:55 -07:00
vm Build system and packaging (RPM support) 2009-03-09 15:56:55 -07:00
Makefile.am Build system cleanup 2009-03-11 12:37:34 -07:00
Makefile.in Build system cleanup 2009-03-11 12:37:34 -07:00
spl-ctl.h Go through and add a header with the proper UCRL number. 2008-05-26 04:38:26 +00:00
spl-device.h Added SPL_AC_5ARGS_DEVICE_CREATE autoconf configure check 2009-03-13 13:38:43 -07:00
splat-ctl.h Coverity 9641: Buffer Size 2009-02-17 16:24:26 -08:00
strings.h More stub headers, 2008-03-04 18:22:31 +00:00
unistd.h More stub headers, 2008-03-04 18:22:31 +00:00