Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 256892
b: refs/heads/master
c: 56e34ee
h: refs/heads/master
v: v3
  • Loading branch information
Roland Dreier authored and Nicholas Bellinger committed Jul 22, 2011
1 parent db8120b commit ad4a332
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 78faae37897dc2a9ccc7c19155294a4bfdcae077
refs/heads/master: 56e34ee2adb59a35bfa5714bdf4dcb3f4d14a41d
5 changes: 3 additions & 2 deletions trunk/drivers/target/target_core_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -813,12 +813,13 @@ static void se_dev_stop(struct se_device *dev)

int se_dev_check_online(struct se_device *dev)
{
unsigned long flags;
int ret;

spin_lock_irq(&dev->dev_status_lock);
spin_lock_irqsave(&dev->dev_status_lock, flags);
ret = ((dev->dev_status & TRANSPORT_DEVICE_ACTIVATED) ||
(dev->dev_status & TRANSPORT_DEVICE_DEACTIVATED)) ? 0 : 1;
spin_unlock_irq(&dev->dev_status_lock);
spin_unlock_irqrestore(&dev->dev_status_lock, flags);

return ret;
}
Expand Down

0 comments on commit ad4a332

Please sign in to comment.