Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 312686
b: refs/heads/master
c: 77d4c74
h: refs/heads/master
v: v3
  • Loading branch information
Nicholas Bellinger committed Jul 17, 2012
1 parent 603cf93 commit 115d599
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 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: e80ac6c4cc073d54daef8ba4ced88347d130d314
refs/heads/master: 77d4c7450646e6bcba3ff6de17aa4b98c34fe849
9 changes: 2 additions & 7 deletions trunk/drivers/target/target_core_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -432,11 +432,7 @@ int core_disable_device_list_for_node(
struct se_portal_group *tpg)
{
struct se_port *port = lun->lun_sep;
struct se_dev_entry *deve;

spin_lock_irq(&nacl->device_list_lock);

deve = nacl->device_list[mapped_lun];
struct se_dev_entry *deve = nacl->device_list[mapped_lun];

/*
* If the MappedLUN entry is being disabled, the entry in
Expand All @@ -454,14 +450,13 @@ int core_disable_device_list_for_node(
spin_lock_bh(&port->sep_alua_lock);
list_del(&deve->alua_port_list);
spin_unlock_bh(&port->sep_alua_lock);

/*
* Wait for any in process SPEC_I_PT=1 or REGISTER_AND_MOVE
* PR operation to complete.
*/
spin_unlock_irq(&nacl->device_list_lock);
while (atomic_read(&deve->pr_ref_count) != 0)
cpu_relax();

spin_lock_irq(&nacl->device_list_lock);
/*
* Disable struct se_dev_entry LUN ACL mapping
Expand Down

0 comments on commit 115d599

Please sign in to comment.