Commit 3a2d025
Kent Overstreet
bcachefs: Fix bch2_dev_lookup() refcounting
bch2_dev_lookup() is supposed to take a ref on the device it returns, but
for_each_member_device() takes refs as it iterates,
for_each_member_device_rcu() does not.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>1 parent 1267df4 commit 3a2d025
1 file changed
Lines changed: 2 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2004 | 2004 | | |
2005 | 2005 | | |
2006 | 2006 | | |
2007 | | - | |
2008 | | - | |
2009 | | - | |
2010 | | - | |
| 2007 | + | |
| 2008 | + | |
2011 | 2009 | | |
2012 | | - | |
2013 | | - | |
2014 | 2010 | | |
2015 | 2011 | | |
2016 | 2012 | | |
| |||
0 commit comments