diff options
author | Bart Van Assche <bart.vanassche@wdc.com> | 2017-08-17 16:23:06 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-08-18 08:36:58 -0600 |
commit | 6d2cf6f2b446c4ace6f57402713ddbc09b11b0a9 (patch) | |
tree | 00de4770e862d2d130a8c1260400dbbd3a56230e /drivers/ide | |
parent | f846593391d86289bed6b4834a9717820561d571 (diff) | |
download | linux-6d2cf6f2b446c4ace6f57402713ddbc09b11b0a9.tar.gz linux-6d2cf6f2b446c4ace6f57402713ddbc09b11b0a9.tar.bz2 linux-6d2cf6f2b446c4ace6f57402713ddbc09b11b0a9.zip |
genhd: Annotate all part and part_tbl pointer dereferences
Annotate gendisk.part_tbl and disk_part_tbl.part dereferences with
rcu_dereference_protected(). This patch does not change the behavior
of the modified code but ensures that sparse does not complain about
disk->part_tbl manipulations nor about part_tbl->part accesses.
Additionally, improve documentation of the locking requirements of
the modified functions.
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: Jan Kara <jack@suse.cz>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/ide')
0 files changed, 0 insertions, 0 deletions