search for: cmd_ioctl_pend

Displaying 1 result from an estimated 1 matches for "cmd_ioctl_pend".

2020 Mar 11
0
[PATCH RFC v2 12/24] hpsa: use reserved commands
...2 @@ static void hpsa_cmd_resolve_events(struct ctlr_info *h, > * this command has completed. Then, check to see if the handler is > * waiting for this command, and, if so, wake it. > */ > - c->scsi_cmd = SCSI_CMD_IDLE; > + if (c->scsi_cmd && c->cmd_type == CMD_IOCTL_PEND) { > + struct scsi_cmnd *scmd = c->scsi_cmd; > + > + scsi_put_reserved_cmd(scmd); > + } > + c->scsi_cmd = NULL; > mb(); /* Declare command idle before checking for pending events. */ > if (dev) { > atomic_dec(&dev->commands_outstanding); > @@ -5502,7...