[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <49C901C1.5080902@suse.de>
Date: Tue, 24 Mar 2009 16:52:33 +0100
From: Hannes Reinecke <hare@...e.de>
To: Boaz Harrosh <bharrosh@...asas.com>
Cc: James Bottomley <James.Bottomley@...senPartnership.com>,
linux-kernel@...r.kernel.org, linux-scsi@...r.kernel.org
Subject: Re: [PATCH] Driver 'sd' needs updating
Hi Boaz,
Boaz Harrosh wrote:
> Hannes Reinecke wrote:
>> If a driver sets blk_queue_prep_rq() it should clean up itself
>> and not rely on the bus callbacks to handle this. This removes
>> the need to hook into bus->remove() as these should not be used
>> at the same time as driver->remove().
>>
>> Signed-off-by: Hannes Reinecke <hare@...e.de>
>> Signed-off-by: Kay Sievers <kay.sievers@...y.org>
>
> I spoke too soon please see below
>
>> ---
>> drivers/scsi/scsi_lib.c | 6 ++++++
>> drivers/scsi/scsi_sysfs.c | 17 -----------------
>> drivers/scsi/sd.c | 2 ++
>> drivers/scsi/sr.c | 1 +
>> include/scsi/scsi_driver.h | 1 +
>> 5 files changed, 10 insertions(+), 17 deletions(-)
>>
>> diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
>> index 4b13e36..73df41b 100644
>> --- a/drivers/scsi/scsi_lib.c
>> +++ b/drivers/scsi/scsi_lib.c
>> @@ -1222,6 +1222,12 @@ int scsi_prep_fn(struct request_queue *q, struct request *req)
>> return scsi_prep_return(q, req, ret);
>> }
>>
>> +void scsi_reset_prep_fn(struct request_queue *q)
>
> Here it is declared void
> but
>
>> diff --git a/include/scsi/scsi_driver.h b/include/scsi/scsi_driver.h
>> index 1f5ca7f..2e22929 100644
>> --- a/include/scsi/scsi_driver.h
>> +++ b/include/scsi/scsi_driver.h
>> @@ -32,5 +32,6 @@ int scsi_setup_blk_pc_cmnd(struct scsi_device *sdev, struct request *req);
>> int scsi_setup_fs_cmnd(struct scsi_device *sdev, struct request *req);
>> int scsi_prep_state_check(struct scsi_device *sdev, struct request *req);
>> int scsi_prep_return(struct request_queue *q, struct request *req, int ret);
>> +int scsi_reset_prep_fn(struct request_queue *);
>
> Here it is returning int.
>
> My FC10 compiler does not like that:
> drivers/scsi/scsi_lib.c:1415: error: conflicting types for 'scsi_reset_prep_fn'
> include/scsi/scsi_driver.h:35: error: previous declaration of 'scsi_reset_prep_fn' was here
>
>>
>> #endif /* _SCSI_SCSI_DRIVER_H */
>
> I fixed it to be void, will test later
>
Argl. You are correct. New patch attached.
Cheers,
Hannes
--
Dr. Hannes Reinecke zSeries & Storage
hare@...e.de +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Markus Rex, HRB 16746 (AG Nürnberg)
View attachment "0001-Driver-sd-needs-updating.patch" of type "text/x-patch" (3498 bytes)
Powered by blists - more mailing lists