Re: [PATCH 2/9] scsi: avoid taking host_lock in scsi_run_queue unless nessecary

2014-02-21 Thread Hannes Reinecke
On 02/20/2014 11:20 PM, Christoph Hellwig wrote: > If we don't have starved devices we don't need to take the host lock > to iterate over them. Also split the function up to be more clear. > > Signed-off-by: Christoph Hellwig Acked-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke

[PATCH 2/9] scsi: avoid taking host_lock in scsi_run_queue unless nessecary

2014-02-20 Thread Christoph Hellwig
If we don't have starved devices we don't need to take the host lock to iterate over them. Also split the function up to be more clear. Signed-off-by: Christoph Hellwig --- drivers/scsi/scsi_lib.c | 43 --- 1 file changed, 24 insertions(+), 19 deletions