Repository navigation
Commit fb3cc43
[PATCH] blk: light iocontext ops
get_io_context needlessly turned off interrupts and checked for racing io
context creations. Both of which aren't needed, because the io context can
only be created while in process context of the current process.
Also, split the function in 2. A light version, current_io_context does not
elevate the reference count specifically, but can be used when in process
context, because the process holds a reference itself.
Signed-off-by: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: Jens Axboe <axboe@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>1 parent d634453 commit fb3cc43
2 files changed
Lines changed: 26 additions & 31 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1876 | 1876 | | |
1877 | 1877 | | |
1878 | 1878 | | |
1879 | | - | |
| 1879 | + | |
1880 | 1880 | | |
1881 | 1881 | | |
1882 | 1882 | | |
| |||
1959 | 1959 | | |
1960 | 1960 | | |
1961 | 1961 | | |
1962 | | - | |
1963 | 1962 | | |
1964 | 1963 | | |
1965 | 1964 | | |
| |||
1997 | 1996 | | |
1998 | 1997 | | |
1999 | 1998 | | |
2000 | | - | |
| 1999 | + | |
2001 | 2000 | | |
2002 | | - | |
2003 | 2001 | | |
2004 | 2002 | | |
2005 | 2003 | | |
| |||
3282 | 3280 | | |
3283 | 3281 | | |
3284 | 3282 | | |
3285 | | - | |
| 3283 | + | |
3286 | 3284 | | |
3287 | | - | |
3288 | | - | |
3289 | | - | |
| 3285 | + | |
| 3286 | + | |
| 3287 | + | |
3290 | 3288 | | |
3291 | | - | |
| 3289 | + | |
3292 | 3290 | | |
3293 | 3291 | | |
3294 | | - | |
3295 | 3292 | | |
3296 | 3293 | | |
3297 | | - | |
3298 | 3294 | | |
3299 | | - | |
3300 | | - | |
3301 | | - | |
3302 | | - | |
| 3295 | + | |
| 3296 | + | |
3303 | 3297 | | |
3304 | 3298 | | |
3305 | 3299 | | |
| |||
3310 | 3304 | | |
3311 | 3305 | | |
3312 | 3306 | | |
| 3307 | + | |
| 3308 | + | |
3313 | 3309 | | |
3314 | | - | |
3315 | | - | |
3316 | | - | |
3317 | | - | |
3318 | | - | |
3319 | | - | |
3320 | | - | |
3321 | | - | |
3322 | | - | |
3323 | | - | |
3324 | | - | |
3325 | | - | |
| 3310 | + | |
| 3311 | + | |
| 3312 | + | |
3326 | 3313 | | |
3327 | | - | |
| 3314 | + | |
| 3315 | + | |
| 3316 | + | |
| 3317 | + | |
| 3318 | + | |
| 3319 | + | |
| 3320 | + | |
| 3321 | + | |
| 3322 | + | |
| 3323 | + | |
| 3324 | + | |
3328 | 3325 | | |
3329 | | - | |
3330 | | - | |
3331 | | - | |
3332 | 3326 | | |
3333 | 3327 | | |
3334 | 3328 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
| |||
0 commit comments