[PATCH] iscsi: don't hang in endless loop if no targets present

2012-01-27 Thread Sasha Levin
iscsi_if_send_reply() may return -ESRCH if there were no targets to send data to. Currently we're ignoring this value and looping in attempt to do it over and over, which will usually lead in a hung task like this one: [ 4920.817298] INFO: task trinity:9074 blocked for more than 120 seconds. [

Re: [PATCH] iscsi: don't hang in endless loop if no targets present

2012-01-25 Thread Mike Christie
On 01/25/2012 09:16 PM, Sasha Levin wrote: iscsi_if_send_reply() may return -ESRCH if there were no targets to send data to. Currently we're ignoring this value and looping in attempt to do it over and over, which will usually lead in a hung task like this one: [ 4920.817298] INFO: task