Re: [PATCH] block: initialize hd_stuct's reference before assigning it

2016-05-06 Thread Johannes Thumshirn
On Tue, May 03, 2016 at 03:38:03PM +0200, Johannes Thumshirn wrote: > Inititialize the hd_struct's perpcu reference before assigning the hd_struct > to the partition table list. > > This fixes a race which could be triggered using a simple partition > creation/deletion loop with virtio-blk on aarc

Re: [PATCH] block: initialize hd_stuct's reference before assigning it

2016-05-03 Thread Hannes Reinecke
On 05/03/2016 03:38 PM, Johannes Thumshirn wrote: > Inititialize the hd_struct's perpcu reference before assigning the hd_struct > to the partition table list. > > This fixes a race which could be triggered using a simple partition > creation/deletion loop with virtio-blk on aarch64. > > Signed-o

[PATCH] block: initialize hd_stuct's reference before assigning it

2016-05-03 Thread Johannes Thumshirn
Inititialize the hd_struct's perpcu reference before assigning the hd_struct to the partition table list. This fixes a race which could be triggered using a simple partition creation/deletion loop with virtio-blk on aarch64. Signed-off-by: Johannes Thumshirn --- block/partition-generic.c | 7 ++