]> git.baikalelectronics.ru Git - kernel.git/commit
loop: replace linked list of allocated devices with an idr index
authorKay Sievers <kay.sievers@vrfy.org>
Sun, 31 Jul 2011 20:08:04 +0000 (22:08 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Sun, 31 Jul 2011 20:08:04 +0000 (22:08 +0200)
commit6634331a9ecac8f1b78704e23353f1dcf37d1b1c
tree35688ccd99d99e16f3c82829eb824703e7460822
parent693f59095021cf27d0f25510c9e97b88c2674c4a
loop: replace linked list of allocated devices with an idr index

Replace the linked list, that keeps track of allocated devices, with an
idr index to allow a more efficient lookup of devices.

Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
drivers/block/loop.c
include/linux/loop.h