Hi all,the first three patches are my take on the proposal from Yufen Yuto fix the use after free of the device name of the bdi device.The rest is vaguely related cleanups.