]> git.proxmox.com Git - mirror_spl.git/commit
Fix taskq_wait_outstanding re-evaluate tq_next_id
authorChunwei Chen <david.chen@osnexus.com>
Mon, 23 May 2016 21:12:22 +0000 (14:12 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 24 May 2016 20:02:10 +0000 (13:02 -0700)
commitb3a22a0a005eef22d696cc77baa26ef80d1bdc0c
tree1c9ca91f7c418038b1a9a5daef2f8000b3189dba
parent5ce028b0d4b650b42cb81b3fdf71b517adce4552
Fix taskq_wait_outstanding re-evaluate tq_next_id

wait_event is a macro, so the current implementation will cause re-
evaluation of tq_next_id every time it wakes up. This would cause
taskq_wait_outstanding(tq, 0) to be equivalent to taskq_wait(tq)

Signed-off-by: Chunwei Chen <david.chen@osnexus.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tim Chase <tim@chase2k.com>
Issue #553
module/spl/spl-taskq.c