Skip to contentSkip to conversation

block: add back the bd_holder_dir reference in bd_link_disk_holder

DISCUSSION Mike Snitzer 2 participants 2 messages Aug 20, 2021 – Aug 21, 2021 1 message not in the archive Block layer

lore
Share & tools
lore

Mike Snitzer

author Reviewed-by
#1 lore raw
In reply to a message not in the archive
Quoted 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")

Looks good, thanks.
(btw, your linux-block cc had a typo, Jens are you able to pick this fix up regardless?)

maintainer
#2 lore raw
Quoted 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")

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