mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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 <[email protected]>
This commit is contained in:
parent
8bdd3f8a69
commit
3bc217ffe6
3 changed files with 0 additions and 24 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue