-scsi_prep_state_check(struct scsi_device *sdev, struct request *req)
+scsi_device_state_check(struct scsi_device *sdev, struct request *req)
{
switch (sdev->sdev_state) {
case SDEV_OFFLINE:
{
switch (sdev->sdev_state) {
case SDEV_OFFLINE:
* commands.
*/
if (unlikely(sdev->sdev_state != SDEV_RUNNING)) {
* commands.
*/
if (unlikely(sdev->sdev_state != SDEV_RUNNING)) {
- ret = scsi_prep_state_check(sdev, req);
+ ret = scsi_device_state_check(sdev, req);
if (ret != BLK_STS_OK)
goto out_put_budget;
}
if (ret != BLK_STS_OK)
goto out_put_budget;
}