On Sun, Apr 24, 2022 at 05:24:12PM +0800, Ming Lei wrote: > > As the debugfs directory use the name of the gendisk, the lifetime rules > > should simply match those of the gendisk. If anyone wants to trace > > SCSI commands sent before probing the gendisk or after removing it > > they can use blktrace on the /dev/sg node. > > Not sure blktrace can trace on /dev/sg since blktrace works on > block_device. Unless someone broke it recently it does. Take a look at all the mess it causes in the blktrace code.