Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 309613
b: refs/heads/master
c: 0a07ab2
h: refs/heads/master
i:
  309611: bea2415
v: v3
  • Loading branch information
Asai Thambi S P authored and Jens Axboe committed May 31, 2012
1 parent d022cef commit f3a9622
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 6c8ab69818e9469c864eea7d47c3d1c36ecd1e95
refs/heads/master: 0a07ab224afc56c497e2f1c48e853dbdf964d549
6 changes: 2 additions & 4 deletions trunk/drivers/block/mtip32xx/mtip32xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -294,18 +294,16 @@ static int hba_reset_nosleep(struct driver_data *dd)
*/
static inline void mtip_issue_ncq_command(struct mtip_port *port, int tag)
{
unsigned long flags = 0;

atomic_set(&port->commands[tag].active, 1);

spin_lock_irqsave(&port->cmd_issue_lock, flags);
spin_lock(&port->cmd_issue_lock);

writel((1 << MTIP_TAG_BIT(tag)),
port->s_active[MTIP_TAG_INDEX(tag)]);
writel((1 << MTIP_TAG_BIT(tag)),
port->cmd_issue[MTIP_TAG_INDEX(tag)]);

spin_unlock_irqrestore(&port->cmd_issue_lock, flags);
spin_unlock(&port->cmd_issue_lock);

/* Set the command's timeout value.*/
port->commands[tag].comp_time = jiffies + msecs_to_jiffies(
Expand Down

0 comments on commit f3a9622

Please sign in to comment.