block: add back the bd_holder_dir reference in bd_link_disk_holder
Mike Snitzer
Reviewed-byQuoted 9 lines · Christoph Hellwig
This essentially reverts "block: remove the extra kobject reference in
bd_link_disk_holder". That commit dropped the extra reference because the condition in the comment can't be true. But it turns out that comment did not actually describe the problematic situation, so add back the extra reference and document it properly.Fixes fbd9a39542ec ("block: remove the extra kobject reference in bd_link_disk_holder")Reported-by Tushar Sugandhi <[email protected]>Signed-off-by Christoph Hellwig <[email protected]>
Looks good, thanks.
(btw, your linux-block cc had a typo, Jens are you able to pick this fix up regardless?)
Jens Axboe
maintainerQuoted 9 lines · Mike Snitzer
Quoted 6 lines · Christoph Hellwig
This essentially reverts "block: remove the extra kobject reference in
bd_link_disk_holder". That commit dropped the extra reference because the condition in the comment can't be true. But it turns out that comment did not actually describe the problematic situation, so add back the extra reference and document it properly.
Quoted 6 lines
Quoted 3 lines
Fixes fbd9a39542ec ("block: remove the extra kobject reference in bd_link_disk_holder")Reported-by Tushar Sugandhi <[email protected]>Signed-off-by Christoph Hellwig <[email protected]>Looks good, thanks.
(btw, your linux-block cc had a typo, Jens are you able to pick this fix up regardless?)
Yep, just did it manually.
Signature · 1 line
Jens Axboe