]> git.baikalelectronics.ru Git - kernel.git/commit
md/bitmap: remove rcu annotation from pointer arithmetic.
authorNeilBrown <neilb@suse.de>
Wed, 20 May 2015 05:05:09 +0000 (15:05 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 20 May 2015 23:14:41 +0000 (09:14 +1000)
commit1a16d270fa4fbe4719076c410757c3ee86248171
tree83a2251c16c683f096e827af104cfef1fa8ed60b
parent1429c39fe6c1b285476b94163f3e4e3c9e2a0c22
md/bitmap: remove rcu annotation from pointer arithmetic.

Evaluating  "&mddev->disks" is simple pointer arithmetic, so
it does not need 'rcu' annotations - no dereferencing is happening.

Also enhance the comment to explain that 'rdev' in that case
is not actually a pointer to an rdev.

Reported-by: Patrick Marlier <patrick.marlier@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/bitmap.c