bdev_clear_flag
bdev_clear_flag(bdev, BD_WRITE_HOLDER);
bdev_clear_flag(dev_to_bdev(dev), BD_MAKE_IT_FAIL);
bdev_clear_flag(bdev, BD_READ_ONLY);