/* Note: One reference to the tape device was made by the open function. So we just get the pointer here and release the reference.  */
static int tapeblock_release(struct gendisk *, fmode_t)
/* Note: One reference to the tape device was made by the open function. So we just get the pointer here and release the reference.  */
static int tapeblock_release(struct gendisk *, fmode_t)
{
	struct tape_device *device = disk->private_data;
	tape_state_set(device, TS_IN_USE);
	tape_release(device);
	tape_put_device(device);
	return 0;
}