]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/block/cciss.c
cciss: Handle special case for sysfs attributes of the first logical drive.
authorStephen M. Cameron <scameron@beardog.cce.hp.com>
Thu, 17 Sep 2009 18:47:34 +0000 (13:47 -0500)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 1 Oct 2009 19:15:42 +0000 (21:15 +0200)
commit8ce51966d3b809d6c1ae4f3902058558589480b8
tree7bedabeeabbb353fc46e4a82954342dfd1eeb4e2
parent361e9b07d11cfc8b77921a0e96910019402efe79
cciss: Handle special case for sysfs attributes of the first logical drive.

For c0dx where x is not 0, we handle deletion and addition simply,
but for c0d0, there is the special case that even when there's no
disk, the device node exists so that the controller may be accessed.
So, for c0d0, we only create the sysfs entries once, when a controller
is added, and only remove them once, when a controller is being
taken down.

Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
drivers/block/cciss.c