https://github.com/torvalds/linux
Revision bc6a385132601c29a6da1dbf8148c0d3c9ad36dc authored by Gulam Mohamed on 14 May 2021, 13:18:42 UTC, committed by Jens Axboe on 20 May 2021, 13:59:35 UTC
When BLKRRPART is called concurrently with del_gendisk, the partitions
rescan can create a stale partition that will never be be cleaned up.

Fix this by checking the the disk is up before rescanning partitions
while under bd_mutex.

Signed-off-by: Gulam Mohamed <gulam.mohamed@oracle.com>
[hch: split from a larger patch]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20210514131842.1600568-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 6c60ff0
History
Tip revision: bc6a385132601c29a6da1dbf8148c0d3c9ad36dc authored by Gulam Mohamed on 14 May 2021, 13:18:42 UTC
block: fix a race between del_gendisk and BLKRRPART
Tip revision: bc6a385
File Mode Size
Documentation
LICENSES
arch
block
certs
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.clang-format -rw-r--r-- 16.4 KB
.cocciconfig -rw-r--r-- 59 bytes
.get_maintainer.ignore -rw-r--r-- 71 bytes
.gitattributes -rw-r--r-- 62 bytes
.gitignore -rw-r--r-- 1.9 KB
.mailmap -rw-r--r-- 19.3 KB
COPYING -rw-r--r-- 496 bytes
CREDITS -rw-r--r-- 98.5 KB
Kbuild -rw-r--r-- 1.3 KB
Kconfig -rw-r--r-- 555 bytes
MAINTAINERS -rw-r--r-- 585.2 KB
Makefile -rw-r--r-- 65.3 KB
README -rw-r--r-- 727 bytes

README

back to top