ia64/linux-2.6.18-xen.hg

changeset 759:2fa1d9446f2f

pvSCSI: fix slight issue

Signed-off-by: James Harper <james.harper@bendigoit.com.au>
Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
Signed-off-by: Jun Kamada <kama@jp.fujitsu.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Dec 10 13:21:23 2008 +0000 (2008-12-10)
parents 8e3025f94790
children 0d10be086a78
files drivers/xen/scsiback/scsiback.c
line diff
     1.1 --- a/drivers/xen/scsiback/scsiback.c	Tue Dec 09 13:03:44 2008 +0000
     1.2 +++ b/drivers/xen/scsiback/scsiback.c	Wed Dec 10 13:21:23 2008 +0000
     1.3 @@ -216,14 +216,16 @@ static void scsiback_print_status(char *
     1.4  }
     1.5  
     1.6  
     1.7 -static void scsiback_cmd_done(struct request *req, int errors)
     1.8 +static void scsiback_cmd_done(struct request *req, int uptodate)
     1.9  {
    1.10  	pending_req_t *pending_req = req->end_io_data;
    1.11  	unsigned char *sense_buffer;
    1.12  	unsigned int resid;
    1.13 +	int errors;
    1.14  
    1.15  	sense_buffer = req->sense;
    1.16  	resid        = req->data_len;
    1.17 +	errors       = req->errors;
    1.18  
    1.19  	if (errors != 0) {
    1.20  		if (log_print_stat)