]> git.baikalelectronics.ru Git - kernel.git/commit
cciss: Don't check h->busy_initializing in cciss_open().
authorStephen M. Cameron <scameron@beardog.cce.hp.com>
Thu, 17 Sep 2009 18:48:05 +0000 (13:48 -0500)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 1 Oct 2009 19:15:43 +0000 (21:15 +0200)
commit16a9f968afb3ab77a4f582b94566b7689010c3a3
tree9a1cfc5fb0fd8ec639bd239e464f59298e588106
parent0fb7d59bc865ef59f0de78fdd53b10a240a0311a
cciss: Don't check h->busy_initializing in cciss_open().

Don't check h->busy_initializing in cciss_open().  Open won't be
called before things are ready, but h->busy_initializing won't be
unset until after the initial rebuild_lun_table is finished.  But,
to read the partitions, cciss_open will be called for each logical
drive during rebuild_lun_table.  If cciss_open checks h->busy_initializing,
then the reading of the partition information during the initial
rebuild_lun_table will fail, which is especially bad news if it
happens to be your boot device.

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