]> asedeno.scripts.mit.edu Git - linux.git/commit
md: document lifetime of internal rdev pointer.
authorNeilBrown <neilb@suse.com>
Fri, 2 Feb 2018 22:19:30 +0000 (09:19 +1100)
committerShaohua Li <sh.li@alibaba-inc.com>
Sun, 18 Feb 2018 18:22:27 +0000 (10:22 -0800)
commitf2785b527cda46314805123ddcbc871655b7c4c4
tree797db5c31d88db7c308e660356501d1367c4cab8
parent4b6c1060eaa6495aa5b0032e8f2d51dd936b1257
md: document lifetime of internal rdev pointer.

The rdev pointer kept in the local 'config' for each for
raid1, raid10, raid4/5/6 has non-obvious lifetime rules.
Sometimes RCU is needed, sometimes a lock, something nothing.

Add documentation to explain this.

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Shaohua Li <sh.li@alibaba-inc.com>
drivers/md/raid1.h
drivers/md/raid10.h
drivers/md/raid5.h