Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 132163
b: refs/heads/master
c: ba087e6
h: refs/heads/master
i:
  132161: e0aa05a
  132159: 09f476f
v: v3
  • Loading branch information
Nobuhiro Iwamatsu authored and Paul Mundt committed Mar 10, 2009
1 parent 5c2d2c7 commit 19115e5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 19 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: bad948ffee7cbf73a7dd3e4b8272985d5c3c8b55
refs/heads/master: ba087e6f69381de6c91d6634aa0f603a2fdc96a9
1 change: 1 addition & 0 deletions trunk/arch/sh/boards/board-ap325rxa.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <linux/gpio.h>
#include <linux/spi/spi.h>
#include <linux/spi/spi_gpio.h>
#include <media/soc_camera.h>
#include <media/soc_camera_platform.h>
#include <media/sh_mobile_ceu.h>
#include <video/sh_mobile_lcdc.h>
Expand Down
30 changes: 12 additions & 18 deletions trunk/drivers/md/md.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,12 @@ static inline mddev_t *mddev_get(mddev_t *mddev)
return mddev;
}

static void mddev_delayed_delete(struct work_struct *ws);
static void mddev_delayed_delete(struct work_struct *ws)
{
mddev_t *mddev = container_of(ws, mddev_t, del_work);
kobject_del(&mddev->kobj);
kobject_put(&mddev->kobj);
}

static void mddev_put(mddev_t *mddev)
{
Expand Down Expand Up @@ -3537,21 +3542,6 @@ static struct kobj_type md_ktype = {

int mdp_major = 0;

static void mddev_delayed_delete(struct work_struct *ws)
{
mddev_t *mddev = container_of(ws, mddev_t, del_work);

if (mddev->private == &md_redundancy_group) {
sysfs_remove_group(&mddev->kobj, &md_redundancy_group);
if (mddev->sysfs_action)
sysfs_put(mddev->sysfs_action);
mddev->sysfs_action = NULL;
mddev->private = NULL;
}
kobject_del(&mddev->kobj);
kobject_put(&mddev->kobj);
}

static int md_alloc(dev_t dev, char *name)
{
static DEFINE_MUTEX(disks_mutex);
Expand Down Expand Up @@ -4043,9 +4033,13 @@ static int do_md_stop(mddev_t * mddev, int mode, int is_open)
mddev->queue->merge_bvec_fn = NULL;
mddev->queue->unplug_fn = NULL;
mddev->queue->backing_dev_info.congested_fn = NULL;
if (mddev->pers->sync_request) {
sysfs_remove_group(&mddev->kobj, &md_redundancy_group);
if (mddev->sysfs_action)
sysfs_put(mddev->sysfs_action);
mddev->sysfs_action = NULL;
}
module_put(mddev->pers->owner);
if (mddev->pers->sync_request)
mddev->private = &md_redundancy_group;
mddev->pers = NULL;
/* tell userspace to handle 'inactive' */
sysfs_notify_dirent(mddev->sysfs_state);
Expand Down

0 comments on commit 19115e5

Please sign in to comment.