File tree 1 file changed +2
-7
lines changed 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -432,11 +432,7 @@ int core_disable_device_list_for_node(
432
432
struct se_portal_group * tpg )
433
433
{
434
434
struct se_port * port = lun -> lun_sep ;
435
- struct se_dev_entry * deve ;
436
-
437
- spin_lock_irq (& nacl -> device_list_lock );
438
-
439
- deve = nacl -> device_list [mapped_lun ];
435
+ struct se_dev_entry * deve = nacl -> device_list [mapped_lun ];
440
436
441
437
/*
442
438
* If the MappedLUN entry is being disabled, the entry in
@@ -454,14 +450,13 @@ int core_disable_device_list_for_node(
454
450
spin_lock_bh (& port -> sep_alua_lock );
455
451
list_del (& deve -> alua_port_list );
456
452
spin_unlock_bh (& port -> sep_alua_lock );
457
-
458
453
/*
459
454
* Wait for any in process SPEC_I_PT=1 or REGISTER_AND_MOVE
460
455
* PR operation to complete.
461
456
*/
462
- spin_unlock_irq (& nacl -> device_list_lock );
463
457
while (atomic_read (& deve -> pr_ref_count ) != 0 )
464
458
cpu_relax ();
459
+
465
460
spin_lock_irq (& nacl -> device_list_lock );
466
461
/*
467
462
* Disable struct se_dev_entry LUN ACL mapping
You can’t perform that action at this time.
0 commit comments