use waitq_empty() instead of pdeq_empty()