Project

General

Profile

Bug #7219

pvscsi panics while simultaneously deleting large number of disks

Added by Yuri Pankov almost 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
driver - device drivers
Start date:
2016-07-24
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

trying to simultaneously delete large number of disks (eg, 8 disks during one VM settings change) leads to panic in pvscsi.


Files

panic1.png (99.9 KB) panic1.png Yuri Pankov, 2016-07-24 08:42 PM
panic2.png (77.5 KB) panic2.png Yuri Pankov, 2016-07-27 02:50 PM

History

#1

Updated by Yuri Pankov almost 4 years ago

  • Description updated (diff)
#2

Updated by Yuri Pankov almost 4 years ago

Here we have a race between mt_config_thread() and async msg handler - the former is the result of mod_unload_all() on debug builds and calls the bus config, unconfiguring the targets before the msg handler gets there, so we try to use already freed dev_info.

#3

Updated by Yuri Pankov almost 4 years ago

#4

Updated by Electric Monk almost 4 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 50 to 100

git commit 6bd8a07093bddc0edfc07bfda4ca600e31c02c03

commit  6bd8a07093bddc0edfc07bfda4ca600e31c02c03
Author: Yuri Pankov <yuri.pankov@nexenta.com>
Date:   2016-08-03T16:11:49.000Z

    7218 pvscsi`pvscsi_bus_config uses wrong base while configuring targets
    7219 pvscsi panics while simultaneously deleting large number of disks
    Reviewed by: Hans Rosenfeld <hans.rosenfeld@nexenta.com>
    Reviewed by: Robert Mustacchi <rm@joyent.com>
    Approved by: Richard Lowe <richlowe@richlowe.net>

Also available in: Atom PDF