From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: [PATCH 07/12] genhd: Annotate all part and part_tbl pointer dereferences To: Bart Van Assche , Jens Axboe Cc: linux-block@vger.kernel.org, Christoph Hellwig , Bart Van Assche , Tejun Heo , Jan Kara , Dan Williams References: <20170817232311.25948-1-bart.vanassche@wdc.com> <20170817232311.25948-8-bart.vanassche@wdc.com> From: Hannes Reinecke Message-ID: Date: Fri, 18 Aug 2017 09:39:01 +0200 MIME-Version: 1.0 In-Reply-To: <20170817232311.25948-8-bart.vanassche@wdc.com> Content-Type: text/plain; charset=utf-8 List-ID: On 08/18/2017 01:23 AM, Bart Van Assche wrote: > 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 > Cc: Tejun Heo > Cc: Jan Kara > Cc: Dan Williams > Cc: Christoph Hellwig > --- > block/genhd.c | 15 ++++++++++----- > block/partition-generic.c | 15 ++++++++++++--- > 2 files changed, 22 insertions(+), 8 deletions(-) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke Teamlead Storage & Networking hare@suse.de +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton HRB 21284 (AG Nürnberg)