]> 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)
commit2f421a88cffb0dd263de5ae0c8430024c5ea7fb8
tree83a2251c16c683f096e827af104cfef1fa8ed60b
parent2c57951d6cfe8bcbcbc0ef1509df44034c4560bb
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