
Looking at the contents of the writeq should be done under a spinlock otherwise it is possible that another thread grabs the queue.
Looking at the contents of the writeq should be done under a spinlock otherwise it is possible that another thread grabs the queue.