Detach task state from ioc, instead keep track of how many processes are accessing the ioc.
Showing the changes to include/linux/blkdev.h (1 of 5 files). Show all
Unified · Split
| @@ -34,7 +34,7 @@ struct sg_io_hdr; · 33 unmodified lines | |||
| 34 | #define BLKDEV_MIN_RQ 4 | 34 | #define BLKDEV_MIN_RQ 4 |
| 35 | #define BLKDEV_MAX_RQ 128 /* Default maximum */ | 35 | #define BLKDEV_MAX_RQ 128 /* Default maximum */ |
| 36 | 36 | ||
| 37 | void put_io_context(struct io_context *ioc); | 37 | int put_io_context(struct io_context *ioc); |
| 38 | void exit_io_context(void); | 38 | void exit_io_context(void); |
| 39 | struct io_context *get_io_context(gfp_t gfp_flags, int node); | 39 | struct io_context *get_io_context(gfp_t gfp_flags, int node); |
| 40 | struct io_context *alloc_io_context(gfp_t gfp_flags, int node); | 40 | struct io_context *alloc_io_context(gfp_t gfp_flags, int node); |