commit | 2d11d9931f5968bddac50d9d224c4812d4be869a | [log] [tgz] |
---|---|---|
author | Stephen M. Cameron <scameron@beardog.cce.hp.com> | Thu Sep 17 13:47:44 2009 -0500 |
committer | Jens Axboe <jens.axboe@oracle.com> | Thu Oct 01 21:15:42 2009 +0200 |
tree | 6ea99eba85cc2de4d061c5c6d262b91aab6226c5 | |
parent | 9ddb27b44ffeb3080b71cc493b2edff2224d9356 [diff] |
cciss: Fix usage_count check in rebuild_lun_table when triggered via sysfs. When rebuild_lun_table is reached via sysfs, the usage count that is checked prior to messing with c0d0 has different constraints (must be zero) than if rebuild_lun_table is reached via ioctl (must be one.) Fix rebuild_lun_table to take that into account. Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>