commit | 71327f547ee3a46ec5c39fdbbd268401b2578d0e | [log] [tgz] |
---|---|---|
author | Omar Sandoval <osandov@fb.com> | Thu Oct 11 12:20:49 2018 -0700 |
committer | Jens Axboe <axboe@kernel.dk> | Tue Oct 16 09:50:03 2018 -0600 |
tree | 6c887980b26407e736d4275da318affba46ff372 | |
parent | 3e6b8c3c4b14f4f0c4a74027156eb31544c0b0da [diff] |
ataflop: fix error handling during setup Move queue allocation next to disk allocation to fix a couple of issues: - If add_disk() hasn't been called, we should clear disk->queue before calling put_disk(). - If we fail to allocate a request queue, we still need to put all of the disks, not just the ones that we allocated queues for. Signed-off-by: Omar Sandoval <osandov@fb.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>