We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e81a6c commit 6ca9818Copy full SHA for 6ca9818
drivers/scsi/scsi_lib.c
@@ -1463,6 +1463,8 @@ static int scsi_dispatch_cmd(struct scsi_cmnd *cmd)
1463
struct Scsi_Host *host = cmd->device->host;
1464
int rtn = 0;
1465
1466
+ atomic_inc(&cmd->device->iorequest_cnt);
1467
+
1468
/* check if the device is still usable */
1469
if (unlikely(cmd->device->sdev_state == SDEV_DEL)) {
1470
/* in SDEV_DEL we error all commands. DID_NO_CONNECT
@@ -1761,7 +1763,6 @@ static blk_status_t scsi_queue_rq(struct blk_mq_hw_ctx *hctx,
1761
1763
goto out_dec_host_busy;
1762
1764
}
1765
- atomic_inc(&cmd->device->iorequest_cnt);
1766
return BLK_STS_OK;
1767
1768
out_dec_host_busy:
0 commit comments