OSDN Git Service

swim: fix cleanup on setup error
authorOmar Sandoval <osandov@fb.com>
Thu, 11 Oct 2018 19:20:41 +0000 (12:20 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Nov 2018 08:27:31 +0000 (09:27 +0100)
commit82e05b994790211bbcc4b18c99f5eb5112e44f56
treef51d4948fc0ad873ab9b35d02d2a2b9ea2fe2109
parent7d81f8fe5427ebe7d5ea8cd526c77fee9c01a7c3
swim: fix cleanup on setup error

[ Upstream commit 1448a2a5360ae06f25e2edc61ae070dff5c0beb4 ]

If we fail to allocate the request queue for a disk, we still need to
free that disk, not just the previous ones. Additionally, we need to
cleanup the previous request queues.

Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/block/swim.c