Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 73132
b: refs/heads/master
c: 931bb68
h: refs/heads/master
v: v3
  • Loading branch information
Gerald Schaefer authored and Martin Schwidefsky committed Nov 5, 2007
1 parent 3ed4dfd commit 2e6ba8a
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 0fc3ddd67a6781238b038165d9dd8c1f9ba81111
refs/heads/master: 931bb68ba6355b7111966c90822ed862c102a9cd
9 changes: 7 additions & 2 deletions trunk/drivers/s390/block/dcssblk.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,12 @@ dcssblk_segment_warn(int rc, char* seg_name)
}
}

static void dcssblk_unregister_callback(struct device *dev)
{
device_unregister(dev);
put_device(dev);
}

/*
* device attribute for switching shared/nonshared (exclusive)
* operation (show + store)
Expand Down Expand Up @@ -276,8 +282,7 @@ dcssblk_shared_store(struct device *dev, struct device_attribute *attr, const ch
blk_cleanup_queue(dev_info->dcssblk_queue);
dev_info->gd->queue = NULL;
put_disk(dev_info->gd);
device_unregister(dev);
put_device(dev);
rc = device_schedule_callback(dev, dcssblk_unregister_callback);
out:
up_write(&dcssblk_devices_sem);
return rc;
Expand Down

0 comments on commit 2e6ba8a

Please sign in to comment.