Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/scjody/ieee1394

+6
+6
drivers/ieee1394/sbp2.c
··· 2350 struct scsi_cmnd *SCpnt = NULL; 2351 u32 scsi_status = SBP2_SCSI_STATUS_GOOD; 2352 struct sbp2_command_info *command; 2353 2354 SBP2_DEBUG("sbp2_handle_status_write"); 2355 ··· 2452 * null out last orb so that next time around we write directly to the orb pointer... 2453 * Quick start saves one 1394 bus transaction. 2454 */ 2455 if (list_empty(&scsi_id->sbp2_command_orb_inuse)) { 2456 scsi_id->last_orb = NULL; 2457 } 2458 2459 } else { 2460 ··· 2566 struct sbp2scsi_host_info *hi = scsi_id->hi; 2567 struct list_head *lh; 2568 struct sbp2_command_info *command; 2569 2570 SBP2_DEBUG("sbp2scsi_complete_all_commands"); 2571 2572 while (!list_empty(&scsi_id->sbp2_command_orb_inuse)) { 2573 SBP2_DEBUG("Found pending command to complete"); 2574 lh = scsi_id->sbp2_command_orb_inuse.next; ··· 2587 command->Current_done(command->Current_SCpnt); 2588 } 2589 } 2590 2591 return; 2592 }
··· 2350 struct scsi_cmnd *SCpnt = NULL; 2351 u32 scsi_status = SBP2_SCSI_STATUS_GOOD; 2352 struct sbp2_command_info *command; 2353 + unsigned long flags; 2354 2355 SBP2_DEBUG("sbp2_handle_status_write"); 2356 ··· 2451 * null out last orb so that next time around we write directly to the orb pointer... 2452 * Quick start saves one 1394 bus transaction. 2453 */ 2454 + spin_lock_irqsave(&scsi_id->sbp2_command_orb_lock, flags); 2455 if (list_empty(&scsi_id->sbp2_command_orb_inuse)) { 2456 scsi_id->last_orb = NULL; 2457 } 2458 + spin_unlock_irqrestore(&scsi_id->sbp2_command_orb_lock, flags); 2459 2460 } else { 2461 ··· 2563 struct sbp2scsi_host_info *hi = scsi_id->hi; 2564 struct list_head *lh; 2565 struct sbp2_command_info *command; 2566 + unsigned long flags; 2567 2568 SBP2_DEBUG("sbp2scsi_complete_all_commands"); 2569 2570 + spin_lock_irqsave(&scsi_id->sbp2_command_orb_lock, flags); 2571 while (!list_empty(&scsi_id->sbp2_command_orb_inuse)) { 2572 SBP2_DEBUG("Found pending command to complete"); 2573 lh = scsi_id->sbp2_command_orb_inuse.next; ··· 2582 command->Current_done(command->Current_SCpnt); 2583 } 2584 } 2585 + spin_unlock_irqrestore(&scsi_id->sbp2_command_orb_lock, flags); 2586 2587 return; 2588 }