Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 77015
b: refs/heads/master
c: e5a69e2
h: refs/heads/master
i:
  77013: 2a7581d
  77011: f29e544
  77007: e11f4c9
v: v3
  • Loading branch information
Matthias Kaehlcke authored and James Bottomley committed Jan 12, 2008
1 parent 1008446 commit faf3e99
Show file tree
Hide file tree
Showing 3 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: 3ce7c6588637614b00072569679791a04898c790
refs/heads/master: e5a69e27cc193f98c9a5a9086e3bf85528170623
7 changes: 4 additions & 3 deletions trunk/drivers/scsi/megaraid/megaraid_sas.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <linux/moduleparam.h>
#include <linux/module.h>
#include <linux/spinlock.h>
#include <linux/mutex.h>
#include <linux/interrupt.h>
#include <linux/delay.h>
#include <linux/uio.h>
Expand Down Expand Up @@ -2358,7 +2359,7 @@ megasas_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)

spin_lock_init(&instance->cmd_pool_lock);

sema_init(&instance->aen_mutex, 1);
mutex_init(&instance->aen_mutex);
sema_init(&instance->ioctl_sem, MEGASAS_INT_CMDS);

/*
Expand Down Expand Up @@ -2874,10 +2875,10 @@ static int megasas_mgmt_ioctl_aen(struct file *file, unsigned long arg)
if (!instance)
return -ENODEV;

down(&instance->aen_mutex);
mutex_lock(&instance->aen_mutex);
error = megasas_register_aen(instance, aen.seq_num,
aen.class_locale_word);
up(&instance->aen_mutex);
mutex_unlock(&instance->aen_mutex);
return error;
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/scsi/megaraid/megaraid_sas.h
Original file line number Diff line number Diff line change
Expand Up @@ -1089,7 +1089,7 @@ struct megasas_instance {
struct megasas_evt_detail *evt_detail;
dma_addr_t evt_detail_h;
struct megasas_cmd *aen_cmd;
struct semaphore aen_mutex;
struct mutex aen_mutex;
struct semaphore ioctl_sem;

struct Scsi_Host *host;
Expand Down

0 comments on commit faf3e99

Please sign in to comment.