Re: [PATCH 70/78] block: replace bd_mutex with a per-gendisk mutex

2020-11-19 Thread Hannes Reinecke
On 11/16/20 3:58 PM, Christoph Hellwig wrote: bd_mutex is primarily used for synchronizing the block device open and release path, which recurses from partitions to the whole disk device. The fact that we have two locks makes life unnecessarily complex due to lock order constrains. Replace the t

[PATCH 70/78] block: replace bd_mutex with a per-gendisk mutex

2020-11-16 Thread Christoph Hellwig
bd_mutex is primarily used for synchronizing the block device open and release path, which recurses from partitions to the whole disk device. The fact that we have two locks makes life unnecessarily complex due to lock order constrains. Replace the two levels of locking with a single mutex in the