]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit - libfrog/workqueue.c
libfrog: create a threaded workqueue
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 6 Dec 2017 15:17:08 +0000 (09:17 -0600)
committerEric Sandeen <sandeen@redhat.com>
Wed, 6 Dec 2017 15:17:08 +0000 (09:17 -0600)
commitf434fd95d4a97ff6ffb936df588c099dbe638cd6
treed9fca2f10e1f78a3eca2157767f5cd4199e7d796
parent67f3fafdf0014d9e63e20938f8758494180b587a
libfrog: create a threaded workqueue

Create a thread pool that queues and runs discrete work items.  This
will be a namespaced version of the pool in repair/threads.c; a
subsequent patch will switch repair over.  xfs_scrub will use the
generic thread pool.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
include/workqueue.h [new file with mode: 0644]
libfrog/Makefile
libfrog/workqueue.c [new file with mode: 0644]