]> git.proxmox.com Git - mirror_spl-debian.git/commit
Remove TQ_SLEEP -> KM_SLEEP mapping
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 12 Sep 2012 18:31:39 +0000 (11:31 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 12 Sep 2012 18:41:42 +0000 (11:41 -0700)
commit9b51f218410ccdeb69a85d99bd5f09051ec2def1
tree70dbe2457b1fd3c8717b7b76605831a250a0e7ec
parent330fe010e42fcdbc70832583f95248b9227ac2c4
Remove TQ_SLEEP -> KM_SLEEP mapping

When the taskq code was originally written it seemed like a good
idea to simply map TQ_SLEEP to KM_SLEEP.  Unfortunately, this
assumed that the TQ_* flags would never confict with any of the
Linux GFP_* flags.  When adding the TQ_PUSHPAGE support in commit
cd5ca4b this invariant was accidentally broken.

Therefore to support TQ_PUSHPAGE, which is needed for Linux, and
prevent any further confusion I have removed this direct mapping.
The TQ_SLEEP, TQ_NOSLEEP, and TQ_PUSHPAGE are no longer defined
in terms of their KM_* counterparts.  Instead a simple mapping
function is introduce to convert TQ_* -> KM_* where needed.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #171
include/sys/taskq.h
module/spl/spl-taskq.c