Spin until a request structure is available in the ioctl path.
This commit is contained in:
parent
29ef275b38
commit
f83695f5e9
@ -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);
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user