Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 173249
b: refs/heads/master
c: 6e9a0f6
h: refs/heads/master
i:
  173247: f7262f6
v: v3
  • Loading branch information
Sebastian Ott authored and Martin Schwidefsky committed Dec 7, 2009
1 parent ca0fdde commit 39e9dbf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 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: 0c609fca243d456af014e92ad1caca045072dfe8
refs/heads/master: 6e9a0f67deeca90c433ac40b887cee8da3bdcea2
10 changes: 9 additions & 1 deletion trunk/drivers/s390/cio/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -1059,6 +1059,8 @@ static int io_subchannel_probe(struct subchannel *sch)
return 0;
}

static void io_subchannel_quiesce(struct subchannel *);

static int
io_subchannel_remove (struct subchannel *sch)
{
Expand All @@ -1068,6 +1070,7 @@ io_subchannel_remove (struct subchannel *sch)
cdev = sch_get_cdev(sch);
if (!cdev)
goto out_free;
io_subchannel_quiesce(sch);
/* Set ccw device to not operational and drop reference. */
spin_lock_irqsave(cdev->ccwlock, flags);
sch_set_cdev(sch, NULL);
Expand Down Expand Up @@ -1150,7 +1153,7 @@ static int io_subchannel_chp_event(struct subchannel *sch,
return 0;
}

static void io_subchannel_shutdown(struct subchannel *sch)
static void io_subchannel_quiesce(struct subchannel *sch)
{
struct ccw_device *cdev;
int ret;
Expand Down Expand Up @@ -1182,6 +1185,11 @@ static void io_subchannel_shutdown(struct subchannel *sch)
spin_unlock_irq(sch->lock);
}

static void io_subchannel_shutdown(struct subchannel *sch)
{
io_subchannel_quiesce(sch);
}

static int device_is_disconnected(struct ccw_device *cdev)
{
if (!cdev)
Expand Down

0 comments on commit 39e9dbf

Please sign in to comment.