On Mon, Apr 25, 2022 at 09:49:18AM +0200, Christoph Hellwig wrote: > 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. But /dev/sg and /dev/sdX can't be opened by blktrace at the same time. Thank, Ming