the SG_IO and SCSI_IOCTL_SEND_COMMAND ioctl's. That just
screws things up when the drive is mounted.
If somebody wants exclusive access, he should indicate that
at open time.
err = sg_emulated_host(q, (int *) arg);
break;
case SG_IO:
- err = bd_claim(bdev, current);
- if (err)
- break;
err = sg_io(q, bdev, (struct sg_io_hdr *) arg);
- bd_release(bdev);
break;
/*
* old junk scsi send command ioctl
if (!arg)
break;
- err = bd_claim(bdev, current);
- if (err)
- break;
err = sg_scsi_ioctl(q, bdev, (Scsi_Ioctl_Command *)arg);
- bd_release(bdev);
break;
case CDROMCLOSETRAY:
close = 1;