I have a 125GB NVMe drive in a USB 3.0 enclosure that I was trying to repartition using the Gnome Disks app.

It failed miserably only giving me errors, so I loaded up gparted. That worked fine other than the usual "I couldn't inform the kernel so you need to reboot to see the new partition" error message. 

Since it was USB I just unplugged and replugged it. Problem solved. 

After I was happy with the result and closed gparted, I went to Nautilus and ejected the drive. The eject button disappeared but the drive entry in the navigator did not, and then my system suddenly rebooted.

It's worth mentioning that I'm testing the 5.15.2-200 kernel on Fedora 35, but even prior to running the testing kernel, with USB thumb drives I noticed when I ejected them, not only did the entry not disappear, but the eject button remained as well.

Thanks,
Richard