Lines Matching defs:old
409 int del_mtd_blktrans_dev(struct mtd_blktrans_dev *old)
415 if (old->disk_attributes)
416 sysfs_remove_group(&disk_to_dev(old->disk)->kobj,
417 old->disk_attributes);
420 del_gendisk(old->disk);
423 spin_lock_irqsave(&old->queue_lock, flags);
424 old->rq->queuedata = NULL;
425 spin_unlock_irqrestore(&old->queue_lock, flags);
428 blk_mq_freeze_queue(old->rq);
429 blk_mq_quiesce_queue(old->rq);
430 blk_mq_unquiesce_queue(old->rq);
431 blk_mq_unfreeze_queue(old->rq);
435 mutex_lock(&old->lock);
436 if (old->open) {
437 if (old->tr->release)
438 old->tr->release(old);
439 __put_mtd_device(old->mtd);
442 old->mtd = NULL;
444 mutex_unlock(&old->lock);
445 blktrans_dev_put(old);