diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2008-02-01 11:34:49 +0100 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2008-02-01 11:34:49 +0100 |
commit | 3bc217ffe6774e7971d6a7ce6350ce806ebab044 (patch) | |
tree | b1ccad14a0c23f12248092feb867d2e311db59f0 /block/blk-ioc.c | |
parent | 8bdd3f8a6993fef2f364aca6e1a59559405773a2 (diff) | |
download | linux-3.10-3bc217ffe6774e7971d6a7ce6350ce806ebab044.tar.gz linux-3.10-3bc217ffe6774e7971d6a7ce6350ce806ebab044.tar.bz2 linux-3.10-3bc217ffe6774e7971d6a7ce6350ce806ebab044.zip |
block: kill swap_io_context()
It blindly copies everything in the io_context, including the lock.
That doesn't work so well for either lock ordering or lockdep.
There seems zero point in swapping io contexts on a request to request
merge, so the best point of action is to just remove it.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'block/blk-ioc.c')
-rw-r--r-- | block/blk-ioc.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/block/blk-ioc.c b/block/blk-ioc.c index 6d1675508eb..80245dc30c7 100644 --- a/block/blk-ioc.c +++ b/block/blk-ioc.c @@ -176,15 +176,6 @@ void copy_io_context(struct io_context **pdst, struct io_context **psrc) } EXPORT_SYMBOL(copy_io_context); -void swap_io_context(struct io_context **ioc1, struct io_context **ioc2) -{ - struct io_context *temp; - temp = *ioc1; - *ioc1 = *ioc2; - *ioc2 = temp; -} -EXPORT_SYMBOL(swap_io_context); - int __init blk_ioc_init(void) { iocontext_cachep = kmem_cache_create("blkdev_ioc", |