]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
sunvdc: prevent sunvdc panic when mpgroup disk added to guest domain
authorJim Quigley <Jim.Quigley@oracle.com>
Fri, 21 Jul 2017 13:20:15 +0000 (09:20 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Aug 2017 05:22:32 +0000 (22:22 -0700)
commit3ee70591d6c47ef4c4699b3395ba96ce287db937
tree5af772dfe1a1bf7ec0d9d3436542463f056f47c4
parentfdaccf74fe83ab3438df014efd55788a1dd414b5
sunvdc: prevent sunvdc panic when mpgroup disk added to guest domain

Using mpgroup to define multiple paths for a virtual disk causes multiple
virtual-device-port ports to be created for that virtual device.
Each virtual-device-port port then gets a vdisk created for it by the Linux
sunvdc driver. As mpgroup is not supported by the Linux sunvdc driver it
cannot handle multiple ports for a single vdisk, leading to a kernel panic
at startup.

This fix prevents more than one vdisk per virtual-device-port being created
until full virtual disk multipathing (mpgroup) support is implemented.

Signed-off-by: Jim Quigley <Jim.Quigley@oracle.com>
Reviewed-by: Liam Merwick <liam.merwick@oracle.com>
Reviewed-by: Shannon Nelson <shannon.nelson@oracle.com>
Reviewed-by: Alexandre Chartre <alexandre.chartre@oracle.com>
Reviewed-by: Aaron Young <aaron.young@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/block/sunvdc.c