]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - include/linux/iocontext.h
block: make ioc get/put interface more conventional and fix race on alloction
[mirror_ubuntu-artful-kernel.git] / include / linux / iocontext.h
index 8a6ecb66346fe2cb8c22f3e3548dd8b2976c12d5..28bb621ef5a2af06a18812a7fd3ed4b040f2bb08 100644 (file)
@@ -78,8 +78,8 @@ struct task_struct;
 #ifdef CONFIG_BLOCK
 void put_io_context(struct io_context *ioc);
 void exit_io_context(struct task_struct *task);
-struct io_context *get_io_context(gfp_t gfp_flags, int node);
-struct io_context *alloc_io_context(gfp_t gfp_flags, int node);
+struct io_context *get_task_io_context(struct task_struct *task,
+                                      gfp_t gfp_flags, int node);
 #else
 struct io_context;
 static inline void put_io_context(struct io_context *ioc) { }