diff options
author | Petr Uzel <petr.uzel@suse.cz> | 2012-02-24 10:56:54 -0500 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-03-27 03:26:28 -0400 |
commit | 2db93ce8cc1801ccb32a2f19062d110e5a9d4282 (patch) | |
tree | 011620c8d8d32437b2ce24227001e32daf1c9075 /drivers/scsi/sd.c | |
parent | 7a3e97b0dc4bbac2ba7803564ab0057722689921 (diff) |
[SCSI] sd: make comment and printk string match code
Adapt comment and printk string after renaming sd_init_command to sd_prep_fn
Adapt comment and printk string after renaming sd_attach to sd_probe
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Acked-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/sd.c')
-rw-r--r-- | drivers/scsi/sd.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index 367635045880..92ab87a188b7 100644 --- a/drivers/scsi/sd.c +++ b/drivers/scsi/sd.c | |||
@@ -664,7 +664,7 @@ static void sd_unprep_fn(struct request_queue *q, struct request *rq) | |||
664 | } | 664 | } |
665 | 665 | ||
666 | /** | 666 | /** |
667 | * sd_init_command - build a scsi (read or write) command from | 667 | * sd_prep_fn - build a scsi (read or write) command from |
668 | * information in the request structure. | 668 | * information in the request structure. |
669 | * @SCpnt: pointer to mid-level's per scsi command structure that | 669 | * @SCpnt: pointer to mid-level's per scsi command structure that |
670 | * contains request and into which the scsi command is written | 670 | * contains request and into which the scsi command is written |
@@ -711,7 +711,7 @@ static int sd_prep_fn(struct request_queue *q, struct request *rq) | |||
711 | ret = BLKPREP_KILL; | 711 | ret = BLKPREP_KILL; |
712 | 712 | ||
713 | SCSI_LOG_HLQUEUE(1, scmd_printk(KERN_INFO, SCpnt, | 713 | SCSI_LOG_HLQUEUE(1, scmd_printk(KERN_INFO, SCpnt, |
714 | "sd_init_command: block=%llu, " | 714 | "sd_prep_fn: block=%llu, " |
715 | "count=%d\n", | 715 | "count=%d\n", |
716 | (unsigned long long)block, | 716 | (unsigned long long)block, |
717 | this_count)); | 717 | this_count)); |
@@ -2649,8 +2649,8 @@ static void sd_probe_async(void *data, async_cookie_t cookie) | |||
2649 | * (e.g. /dev/sda). More precisely it is the block device major | 2649 | * (e.g. /dev/sda). More precisely it is the block device major |
2650 | * and minor number that is chosen here. | 2650 | * and minor number that is chosen here. |
2651 | * | 2651 | * |
2652 | * Assume sd_attach is not re-entrant (for time being) | 2652 | * Assume sd_probe is not re-entrant (for time being) |
2653 | * Also think about sd_attach() and sd_remove() running coincidentally. | 2653 | * Also think about sd_probe() and sd_remove() running coincidentally. |
2654 | **/ | 2654 | **/ |
2655 | static int sd_probe(struct device *dev) | 2655 | static int sd_probe(struct device *dev) |
2656 | { | 2656 | { |
@@ -2665,7 +2665,7 @@ static int sd_probe(struct device *dev) | |||
2665 | goto out; | 2665 | goto out; |
2666 | 2666 | ||
2667 | SCSI_LOG_HLQUEUE(3, sdev_printk(KERN_INFO, sdp, | 2667 | SCSI_LOG_HLQUEUE(3, sdev_printk(KERN_INFO, sdp, |
2668 | "sd_attach\n")); | 2668 | "sd_probe\n")); |
2669 | 2669 | ||
2670 | error = -ENOMEM; | 2670 | error = -ENOMEM; |
2671 | sdkp = kzalloc(sizeof(*sdkp), GFP_KERNEL); | 2671 | sdkp = kzalloc(sizeof(*sdkp), GFP_KERNEL); |