]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: Add high priority workqueue support for btrfs_workqueue_struct
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Fri, 28 Feb 2014 02:46:04 +0000 (10:46 +0800)
committerJosef Bacik <jbacik@fb.com>
Mon, 10 Mar 2014 19:17:03 +0000 (15:17 -0400)
commite755e13f902635688ad2ad34420debc25dc752b3
tree36266c4bd75ea9807f8936c40d1e13803b3fd83a
parent8c9cdb8d2a61437f8abe5d71298cab2294cfe15e
btrfs: Add high priority workqueue support for btrfs_workqueue_struct

Add high priority function to btrfs_workqueue.

This is implemented by embedding a btrfs_workqueue into a
btrfs_workqueue and use some helper functions to differ the normal
priority wq and high priority wq.
So the high priority wq is completely independent from the normal
workqueue.

Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Tested-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Josef Bacik <jbacik@fb.com>
fs/btrfs/async-thread.c
fs/btrfs/async-thread.h