]> git.baikalelectronics.ru Git - kernel.git/commit
cciss: Fix usage_count check in rebuild_lun_table when triggered via sysfs.
authorStephen M. Cameron <scameron@beardog.cce.hp.com>
Thu, 17 Sep 2009 18:47:44 +0000 (13:47 -0500)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 1 Oct 2009 19:15:42 +0000 (21:15 +0200)
commit6e8c0237d29d3c6573d049696ab55d133969c4ad
tree6ea99eba85cc2de4d061c5c6d262b91aab6226c5
parent974113dd29281042e3d431a84d553e4fa432b5a1
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>
drivers/block/cciss.c