projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40b9383
)
scsi: core: Rename scsi_prep_state_check() to scsi_device_state_check()
author
Christoph Hellwig
<hch@lst.de>
Mon, 5 Oct 2020 08:41:26 +0000
(10:41 +0200)
committer
Martin K. Petersen
<martin.petersen@oracle.com>
Thu, 8 Oct 2020 01:48:27 +0000
(21:48 -0400)
The old name is rather confusing now that the the legacy prep_fn is gone.
Link:
https://lore.kernel.org/r/20201005084130.143273-7-hch@lst.de
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_lib.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/scsi_lib.c
b/drivers/scsi/scsi_lib.c
index 3325ca22bf6d92bfca8230a3f83b3a74056f10d1..6a586715379ccabbfed7ef47a305503312d23ecb 100644
(file)
--- a/
drivers/scsi/scsi_lib.c
+++ b/
drivers/scsi/scsi_lib.c
@@
-1229,7
+1229,7
@@
static blk_status_t scsi_setup_cmnd(struct scsi_device *sdev,
}
static blk_status_t
-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:
@@
-1662,7
+1662,7
@@
static blk_status_t scsi_queue_rq(struct blk_mq_hw_ctx *hctx,
* 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;
}