cciss: Add usage_count attribute to each logical drive in /sys
commite272afecaf18912e971374df4605496975942e5c
authorStephen M. Cameron <scameron@beardog.cce.hp.com>
Thu, 17 Sep 2009 18:48:26 +0000 (17 13:48 -0500)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 1 Oct 2009 19:15:44 +0000 (1 21:15 +0200)
treee3dbdedb51da5a48acf50b186ed12b43a614368c
parent3ff1111dc6e27524eeef267ab0ca9b5690594748
cciss: Add usage_count attribute to each logical drive in /sys

Add usage_count attribute to each logical drive at
/sys/devices/<dev>/ccissX/cXdY/usage_count for controller X,
logical drive Y.  The usage count is the number of times
the device has currently been opened.

Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Documentation/ABI/testing/sysfs-bus-pci-devices-cciss
drivers/block/cciss.c