Skip to content

Commit 0f1b632

Browse files
urezkichantra
authored andcommitted
scsi/scsi_error: Use call_rcu_flush() instead of call_rcu()
Slow boot time is seen on KVM running typical Linux distributions due to SCSI layer calling call_rcu(). Recent changes to save power may be causing this slowness. Using call_rcu_flush() fixes the issue and brings the boot time back to what it originally was. Convert it. Tested-by: Joel Fernandes (Google) <[email protected]> Signed-off-by: Uladzislau Rezki <[email protected]> Signed-off-by: Joel Fernandes (Google) <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]>
1 parent dcb5036 commit 0f1b632

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/scsi_error.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ void scsi_eh_scmd_add(struct scsi_cmnd *scmd)
312312
* Ensure that all tasks observe the host state change before the
313313
* host_failed change.
314314
*/
315-
call_rcu(&scmd->rcu, scsi_eh_inc_host_failed);
315+
call_rcu_flush(&scmd->rcu, scsi_eh_inc_host_failed);
316316
}
317317

318318
/**

0 commit comments

Comments
 (0)