Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 37295
b: refs/heads/master
c: 9b51601
h: refs/heads/master
i:
  37293: 9e95c36
  37291: a550a59
  37287: dcc31dd
  37279: 6224c0e
v: v3
  • Loading branch information
Stefan Richter committed Sep 17, 2006
1 parent 76ffd55 commit 2d33257
Show file tree
Hide file tree
Showing 2 changed files with 6 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: b809289df06ff9453c1b19df74ea83aba311dfc6
refs/heads/master: 9b516010863195ba7db061233a3eeffe779130e8
9 changes: 5 additions & 4 deletions trunk/drivers/ieee1394/nodemgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1316,6 +1316,7 @@ static void nodemgr_node_scan(struct host_info *hi, int generation)
}


/* Caller needs to hold nodemgr_ud_class.subsys.rwsem as reader. */
static void nodemgr_suspend_ne(struct node_entry *ne)
{
struct class_device *cdev;
Expand Down Expand Up @@ -1368,15 +1369,14 @@ static void nodemgr_resume_ne(struct node_entry *ne)
}


/* Caller needs to hold nodemgr_ud_class.subsys.rwsem as reader. */
static void nodemgr_update_pdrv(struct node_entry *ne)
{
struct unit_directory *ud;
struct hpsb_protocol_driver *pdrv;
struct class *class = &nodemgr_ud_class;
struct class_device *cdev;

down_read(&class->subsys.rwsem);
list_for_each_entry(cdev, &class->children, node) {
list_for_each_entry(cdev, &nodemgr_ud_class.children, node) {
ud = container_of(cdev, struct unit_directory, class_dev);
if (ud->ne != ne || !ud->device.driver)
continue;
Expand All @@ -1389,7 +1389,6 @@ static void nodemgr_update_pdrv(struct node_entry *ne)
up_write(&ud->device.bus->subsys.rwsem);
}
}
up_read(&class->subsys.rwsem);
}


Expand Down Expand Up @@ -1420,6 +1419,8 @@ static void nodemgr_irm_write_bc(struct node_entry *ne, int generation)
}


/* Caller needs to hold nodemgr_ud_class.subsys.rwsem as reader because the
* calls to nodemgr_update_pdrv() and nodemgr_suspend_ne() here require it. */
static void nodemgr_probe_ne(struct host_info *hi, struct node_entry *ne, int generation)
{
struct device *dev;
Expand Down

0 comments on commit 2d33257

Please sign in to comment.