Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 117946
b: refs/heads/master
c: b3c21e4
h: refs/heads/master
v: v3
  • Loading branch information
Frank Munzert authored and Martin Schwidefsky committed Oct 28, 2008
1 parent f1e8012 commit 485a244
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 13f8b7c5e6fa13622592042f3b5aa88ba785cec2
refs/heads/master: b3c21e4919c8598c58faaa0a650dc398baddd993
8 changes: 4 additions & 4 deletions trunk/drivers/s390/char/tape_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1200,7 +1200,7 @@ tape_open(struct tape_device *device)
{
int rc;

spin_lock(get_ccwdev_lock(device->cdev));
spin_lock_irq(get_ccwdev_lock(device->cdev));
if (device->tape_state == TS_NOT_OPER) {
DBF_EVENT(6, "TAPE:nodev\n");
rc = -ENODEV;
Expand All @@ -1218,7 +1218,7 @@ tape_open(struct tape_device *device)
tape_state_set(device, TS_IN_USE);
rc = 0;
}
spin_unlock(get_ccwdev_lock(device->cdev));
spin_unlock_irq(get_ccwdev_lock(device->cdev));
return rc;
}

Expand All @@ -1228,11 +1228,11 @@ tape_open(struct tape_device *device)
int
tape_release(struct tape_device *device)
{
spin_lock(get_ccwdev_lock(device->cdev));
spin_lock_irq(get_ccwdev_lock(device->cdev));
if (device->tape_state == TS_IN_USE)
tape_state_set(device, TS_UNUSED);
module_put(device->discipline->owner);
spin_unlock(get_ccwdev_lock(device->cdev));
spin_unlock_irq(get_ccwdev_lock(device->cdev));
return 0;
}

Expand Down

0 comments on commit 485a244

Please sign in to comment.