Re: [dm-devel] [PATCH 69/78] block: remove the nr_sects field in struct hd_struct

2020-11-19 Thread Hannes Reinecke
On 11/16/20 3:58 PM, Christoph Hellwig wrote: Now that the hd_struct always has a block device attached to it, there is no need for having two size field that just get out of sync. Additional the field in hd_struct did not use proper serializiation, possibly allowing for torn writes. By only us

[dm-devel] [PATCH 69/78] block: remove the nr_sects field in struct hd_struct

2020-11-16 Thread Christoph Hellwig
Now that the hd_struct always has a block device attached to it, there is no need for having two size field that just get out of sync. Additional the field in hd_struct did not use proper serializiation, possibly allowing for torn writes. By only using the block_device field this problem also get