Skip to content

Commit

Permalink
Dumb mistakes are dumb
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Betts committed Dec 1, 2006
1 parent 21802f1 commit 2b0ffee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions osd_initiator/kernel/suo.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@ static ssize_t sd_show_cache_type(struct class_device *classdev, char *buf);

/* File ops */
static int suo_open(struct inode *inode, struct file *filp);
static int suo_close(struct inode *inode, struct file *filp);
static int suo_release(struct inode *inode, struct file *filp);
/* static int sd_getgeo(struct block_device *bdev, struct hd_geometry *geo); */
static void set_media_not_present(struct scsi_osd_disk *sdkp);
Expand Down Expand Up @@ -604,7 +603,7 @@ static int suo_open(struct inode *inode, struct file *filp)
if (!scsi_device_online(sdev))
goto error_out;

atomic_add(&sdkp->openers);
atomic_inc(&sdkp->openers);
if (atomic_read(&sdkp->openers) == 1 && sdev->removable) {
if (scsi_block_when_processing_errors(sdev))
scsi_set_medium_removal(sdev, SCSI_REMOVAL_PREVENT);
Expand Down Expand Up @@ -764,7 +763,8 @@ suo_read(struct file *filp, char __user *buf, size_t count, loff_t * ppos)
}

/* Wait awhile then try again */
poll_wait(filp, &sfp->read_wait, wait);
/* should be poll_wait(filp, &sfp->read_wait, wait); */
yield();
continue;
}

Expand Down

0 comments on commit 2b0ffee

Please sign in to comment.