• Ed Cashin's avatar
    aoe: remove vestigial request queue allocation · 0a41409c
    Ed Cashin authored
    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
    7135a71b ("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: default avatarEd Cashin <ecashin@coraid.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    0a41409c
aoeblk.c 7.83 KB