ioctl VINUM_READCONFIG: Don't lock configuration here. vinum_scandisk

needs to do it anyway to handle the startup case.  This is
            part of a fix for the recently reported hangs.

Approved by:  re (scottl)
This commit is contained in:
Greg Lehey 2003-05-08 00:36:20 +00:00
parent b4756f9967
commit 108b696afe
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=114825

View File

@ -41,7 +41,7 @@
* otherwise) arising in any way out of the use of this software, even if
* advised of the possibility of such damage.
*
* $Id: vinumioctl.c,v 1.21 2003/05/04 05:23:09 grog Exp grog $
* $Id: vinumioctl.c,v 1.22 2003/05/07 03:31:45 grog Exp grog $
* $FreeBSD$
*/
@ -303,9 +303,6 @@ vinum_super_ioctl(dev_t dev,
return error;
case VINUM_READCONFIG:
error = lock_config(); /* get the config for us alone */
if (error) /* can't do it, */
return error; /* give up */
if (((char *) data)[0] == '\0')
ioctl_reply->error = vinum_scandisk(NULL); /* built your own list */
else
@ -317,7 +314,6 @@ vinum_super_ioctl(dev_t dev,
strcpy(ioctl_reply->msg, "no drives found");
} else if (ioctl_reply->error)
strcpy(ioctl_reply->msg, "can't read configuration information, see log file");
unlock_config();
return 0; /* must be 0 to return the real error info */
case VINUM_INIT: