Spin until a request structure is available in the ioctl path.

This commit is contained in:
Paul Saab 2006-05-30 06:42:02 +00:00
parent 29ef275b38
commit f83695f5e9

View File

@ -2261,8 +2261,8 @@ ciss_user_command(struct ciss_softc *sc, IOCTL_Command_struct *ioc)
/*
* Get a request.
*/
if ((error = ciss_get_request(sc, &cr)) != 0)
goto out;
while (ciss_get_request(sc, &cr) != 0)
tsleep(sc, PPAUSE, "cissREQ", hz);
cc = CISS_FIND_COMMAND(cr);
/*