]> git.hungrycats.org Git - linux/commit
aoe: remove vestigial request queue allocation
authorEd Cashin <ecashin@coraid.com>
Tue, 18 Dec 2012 00:03:58 +0000 (16:03 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jan 2013 16:46:23 +0000 (08:46 -0800)
commita21ebdce6d1ba32a8a514b66115753eac5f75a41
tree7f1cf913aa0bac0579046a4b5ac3602a2a63c6b0
parent4a2113ba833fdc4d1800ad9c7fafaad23bfb4b54
aoe: remove vestigial request queue allocation

commit 0a41409c518083133e79015092585d68915865be upstream.

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
7135a71b19be ("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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/block/aoe/aoeblk.c