Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 186990
b: refs/heads/master
c: a290156
h: refs/heads/master
v: v3
  • Loading branch information
Sebastian Ott authored and Martin Schwidefsky committed Mar 8, 2010
1 parent 1a1bf85 commit 751d5c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 52898025cf7d458d029c18773d0ef49b4789d829
refs/heads/master: a290156f479af436f94ac23f5729a1e33c94293b
5 changes: 3 additions & 2 deletions trunk/drivers/s390/cio/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ static void sch_create_and_recog_new_device(struct subchannel *sch)
static void io_subchannel_register(struct ccw_device *cdev)
{
struct subchannel *sch;
int ret;
int ret, adjust_init_count = 1;
unsigned long flags;

sch = to_subchannel(cdev->dev.parent);
Expand Down Expand Up @@ -793,6 +793,7 @@ static void io_subchannel_register(struct ccw_device *cdev)
cdev->private->dev_id.ssid,
cdev->private->dev_id.devno);
}
adjust_init_count = 0;
goto out;
}
/*
Expand All @@ -818,7 +819,7 @@ static void io_subchannel_register(struct ccw_device *cdev)
cdev->private->flags.recog_done = 1;
wake_up(&cdev->private->wait_q);
out_err:
if (atomic_dec_and_test(&ccw_device_init_count))
if (adjust_init_count && atomic_dec_and_test(&ccw_device_init_count))
wake_up(&ccw_device_init_wq);
}

Expand Down

0 comments on commit 751d5c3

Please sign in to comment.