Commit ec1b8260 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Dave Chinner

fs: make sb_init_dio_done_wq available outside of direct-io.c

We want to use the per-sb completion workqueue from the new iomap
direct I/O code.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Tested-by: default avatarJens Axboe <axboe@fb.com>
Reviewed-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: default avatarDave Chinner <david@fromorbit.com>
parent 65523218
...@@ -554,7 +554,7 @@ static inline int dio_bio_reap(struct dio *dio, struct dio_submit *sdio) ...@@ -554,7 +554,7 @@ static inline int dio_bio_reap(struct dio *dio, struct dio_submit *sdio)
* filesystems that don't need it and also allows us to create the workqueue * filesystems that don't need it and also allows us to create the workqueue
* late enough so the we can include s_id in the name of the workqueue. * late enough so the we can include s_id in the name of the workqueue.
*/ */
static int sb_init_dio_done_wq(struct super_block *sb) int sb_init_dio_done_wq(struct super_block *sb)
{ {
struct workqueue_struct *old; struct workqueue_struct *old;
struct workqueue_struct *wq = alloc_workqueue("dio/%s", struct workqueue_struct *wq = alloc_workqueue("dio/%s",
......
...@@ -184,3 +184,6 @@ typedef loff_t (*iomap_actor_t)(struct inode *inode, loff_t pos, loff_t len, ...@@ -184,3 +184,6 @@ typedef loff_t (*iomap_actor_t)(struct inode *inode, loff_t pos, loff_t len,
loff_t iomap_apply(struct inode *inode, loff_t pos, loff_t length, loff_t iomap_apply(struct inode *inode, loff_t pos, loff_t length,
unsigned flags, struct iomap_ops *ops, void *data, unsigned flags, struct iomap_ops *ops, void *data,
iomap_actor_t actor); iomap_actor_t actor);
/* direct-io.c: */
int sb_init_dio_done_wq(struct super_block *sb);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment