Re: [PATCH 02/19] blk-cgroup: delay blk-cgroup initialization until add_disk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Feb 08, 2023 at 07:35:52AM +0100, Christoph Hellwig wrote:
> On Tue, Feb 07, 2023 at 10:40:32PM +0800, Ming Lei wrote:
> > because disk->root_blkg is freed & set as NULL in del_gendisk().
> > 
> > by the following script:
> > 
> > 	modprobe -r scsi_debug
> > 	modprobe scsi_debug dev_size_mb=1024
> > 	
> > 	mkfs.xfs -f /dev/sdc	#suppose sdc is the scsi debug disk
> > 	mount /dev/sdc /mnt
> > 	echo 1 > /sys/block/sdc/device/delete
> > 	sleep 1
> > 	umount /mnt
> 
> Thank,
> 
> I've sent a fix.  Can you wire up your reproducer in blktests?

Yeah, it is already sent out:

https://lore.kernel.org/linux-block/20230208010235.553252-1-ming.lei@xxxxxxxxxx/T/#u



Thanks,
Ming




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux