/* These functions are currently used only to schedule a medium_sense for later execution. This is because we get an interrupt whenever a medium is inserted but cannot call tape_do_io* from an interrupt context. Maybe that's useful for other actions we want to start from the interrupt handler.  */
static void tape_34xx_work_handler(struct work_struct *work)
/* These functions are currently used only to schedule a medium_sense for later execution. This is because we get an interrupt whenever a medium is inserted but cannot call tape_do_io* from an interrupt context. Maybe that's useful for other actions we want to start from the interrupt handler.  */
static void tape_34xx_work_handler(struct work_struct *work)
{
	struct tape_34xx_work *p =
		container_of(work, struct tape_34xx_work, work);
	struct tape_device *device = p->device;
	switch(p->op) {
		case TO_MSEN:
			tape_34xx_medium_sense(device);
			break;
		default:
			DBF_EVENT(3, "T34XX: internal error: unknown work\n");
	}
	tape_put_device(device);
	kfree(p);
}