[illumos-Developer] WEBREV: 434 kernel crash dump on comstar iscsit
Albert Lee
trisk at opensolaris.org
Tue Jan 18 10:42:10 PST 2011
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).
-Albert
More information about the Developer
mailing list