[illumos-Developer] WEBREV: 434 kernel crash dump on comstar iscsit

Alexander Stetsenko ams at nexenta.com
Fri Jan 21 11:53:04 PST 2011


01/18/2011 09:42 PM, Albert Lee пишет:
> On Mon, Jan 17, 2011 at 8:46 AM, Alexander Stetsenko<ams at nexenta.com>  wrote:
>> Webrev link is here:
>>
>> http://cr.illumos.org/view/2y5oj5em/
>>
>> This fixes crash of comstar when multiple parallel iscsi target creation
>> requests happen.
>>
>> Crash happened because of there was stale requests in active/waiting queues,
>> for instance - ONLINE request after DELETE request, DELETE request removed
>> object (iscsi target)
>> and released its memory, so while ONLINE request processing it referred to
>> freed memory or tried
>> to "hold"  going to die iscsi target object.
>>
>> Fix is to remove stale requests from active queue while iscsitgt object is
>> going to be destroyed.
>> (waiting queue was removed at all)
>>
>> A crash is easily reproduced on hw multicore machine.
>>
> Looks good to me. (Would be even better if you defined some constants
> for the timeout values used all over the place, though).
I cannot judge about those values and their meanings.
  I`m not clear about timeout code, I`ve just moved it to distinct function.
That`s the reason I won`t do that.
> -Albert




More information about the Developer mailing list