diff options
| author | Andrew Morton <akpm@osdl.org> | 2003-07-04 19:37:34 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.osdl.org> | 2003-07-04 19:37:34 -0700 |
| commit | 07581dd2bdd67146d13a61ca6506c6c8b694666a (patch) | |
| tree | a20a789095fd278471fde057083fc9e546c34c7f /include/linux | |
| parent | 930805a244eaadb5aefbc08b558db72136128388 (diff) | |
[PATCH] get_io_context fixes
- pass gfp_flags to get_io_context(): not all callers are forced to use
GFP_ATOMIC().
- fix locking in get_io_context(): bump the refcount whilein the exclusive
region.
- don't go oops in get_io_context() if the kmalloc failed.
- in as_get_io_context(): fail the whole thing if we were unable to
allocate the AS-specific part.
- as_remove_queued_request() cleanup
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/blkdev.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 69178ca80d7d..2e7f92aa1dc2 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -70,7 +70,7 @@ struct io_context { void put_io_context(struct io_context *ioc); void exit_io_context(void); -struct io_context *get_io_context(void); +struct io_context *get_io_context(int gfp_flags); void copy_io_context(struct io_context **pdst, struct io_context **psrc); void swap_io_context(struct io_context **ioc1, struct io_context **ioc2); |
