On 06/17/2019 08:45 AM, Bart Van Assche wrote: > On 6/16/19 6:28 PM, Chaitanya Kulkarni wrote: >> In the blk-zoned, bcache, f2fs and blktrace implementation >> block device->hd_part->number of sectors field is accessed directly >> without any appropriate locking or accessor function. There is >> an existing accessor function present in the in include/linux/genhd.h >> which should be used to read the bdev->hd_part->nr_sects. > > In the subject, "nr_setcs" should probably be changed into "nr_sects"? > Yes, will fix it in next version. > Bart. >