]> Git Repo - linux.git/commit
block: take bd_mutex around delete_partitions in del_gendisk
authorChristoph Hellwig <[email protected]>
Tue, 6 Apr 2021 06:22:56 +0000 (08:22 +0200)
committerJens Axboe <[email protected]>
Thu, 8 Apr 2021 16:24:36 +0000 (10:24 -0600)
commitc76f48eb5c084b1e15c931ae8cc1826cd771d70d
treee077b28cd7d52c2f98be76d4faf699341f7393b2
parentd3c4a43d9291279c28b26757351a6ab72c110753
block: take bd_mutex around delete_partitions in del_gendisk

There is nothing preventing an ioctl from trying do delete partition
concurrenly with del_gendisk, so take open_mutex to serialize against
that.

Signed-off-by: Christoph Hellwig <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
block/genhd.c
block/partitions/core.c
This page took 0.051808 seconds and 4 git commands to generate.