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. >
- Re: [PATCH V2 5/7] bcache: update cached_dev_i... Chaitanya Kulkarni
- [PATCH V2 4/7] blk-zoned: update blkdev_reset_zones() w... Chaitanya Kulkarni
- [PATCH V2 6/7] f2fs: use helper in init_blkz_info() Chaitanya Kulkarni
- [PATCH V2 7/7] blktrace: use helper in blk_trace_setup_... Chaitanya Kulkarni
- [PATCH V2 2/7] blk-zoned: update blkdev_nr_zones() with... Chaitanya Kulkarni
- [PATCH V2 3/7] blk-zoned: update blkdev_report_zone() w... Chaitanya Kulkarni
- [PATCH V2 1/7] block: add a helper function to read nr_... Chaitanya Kulkarni
- Re: [PATCH V2 1/7] block: add a helper function to... Bart Van Assche
- Re: [PATCH V2 1/7] block: add a helper functio... Chaitanya Kulkarni
- Re: [PATCH V2 0/7] block: use right accessor to read nr... Bart Van Assche
- Re: [PATCH V2 0/7] block: use right accessor to re... Chaitanya Kulkarni
- Re: [PATCH V2 0/7] block: use right accessor to read nr... Bart Van Assche
- Re: [PATCH V2 0/7] block: use right accessor to re... Chaitanya Kulkarni
