]> git.karo-electronics.de Git - karo-tx-linux.git/commit
aoe: remove vestigial request queue allocation
authorEd Cashin <ecashin@coraid.com>
Thu, 29 Nov 2012 03:19:09 +0000 (14:19 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 5 Dec 2012 05:23:52 +0000 (16:23 +1100)
commit5728e00e20b86a36307b57b01fc80d404177a5c9
tree21fb17b2f5cf777bd165e9c50b9265078cfd2111
parent86894a740d2f1d2a4b919c47faa4be1f339e422a
aoe: remove vestigial request queue allocation

Before the aoe driver was an I/O request handler, it was a
make_request-style block driver.  Even so, there was a problem where sysfs
expected a request queue to exist, so one was provided in commit
7135a71b19be1fa ("aoe: allocate unused request_queue for sysfs").

During the transition to the request-handler style, a patch was merged
that was based on a driver without the noop queue, and the noop queue
remained in place after the patch was merged, even though a new functional
queue was introduced by the patch, allocated through blk_init_queue.

The user impact is a memory leak proportional to the number of AoE targets
discovered.  This patch removes the memory leak and cleans up vestiges of
the old do-nothing queue from the aoeblk_gdalloc function.

Signed-off-by: Ed Cashin <ecashin@coraid.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/block/aoe/aoeblk.c