Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 33c17051 authored by Jan Kara's avatar Jan Kara Committed by Gerrit - the friendly Code Review server
Browse files

block: Dynamically allocate and refcount backing_dev_info



Instead of storing backing_dev_info inside struct request_queue,
allocate it dynamically, reference count it, and free it when the last
reference is dropped. Currently only request_queue holds the reference
but in the following patch we add other users referencing
backing_dev_info.

Change-Id: Iec92b14c5a1d4f25dd6e3abe9c18c121b2ae3fa4
Signed-off-by: default avatarJan Kara <jack@suse.cz>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
Git-commit: d03f6cdc1fc422accb734c7c07a661a0018d8631
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git


[riteshh@codeaurora.org: Resolved minor merge conflicts]
Signed-off-by: default avatarRitesh Harjani <riteshh@codeaurora.org>
parent 1cdb7f9c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment