[PATCH] SMP request handlers need to update resid

2007-12-19 Thread FUJITA Tomonori
Doug pointed out that SMP passthrough support via bsg doesn't update din_resid or dout_resid. It's confusing for user-space tools like smp_utils. This patch fixes mptsas_smp_handler (for sas fusion) and libsas' sas_smp_handler to update both din_resid or dout_resid on success. Signed-off-by:

Re: [PATCH] SMP request handlers need to update resid

2007-12-19 Thread Julian Calaby
On Dec 20, 2007 1:44 PM, FUJITA Tomonori [EMAIL PROTECTED] wrote: --- a/drivers/message/fusion/mptsas.c +++ b/drivers/message/fusion/mptsas.c @@ -1343,6 +1343,8 @@ static int mptsas_smp_handler(struct Scsi_Host *shost, struct sas_rphy *rphy, smprep = (SmpPassthroughReply_t

Re: [PATCH] SMP request handlers need to update resid

2007-12-19 Thread FUJITA Tomonori
On Thu, 20 Dec 2007 14:13:15 +1100 Julian Calaby [EMAIL PROTECTED] wrote: On Dec 20, 2007 1:44 PM, FUJITA Tomonori [EMAIL PROTECTED] wrote: --- a/drivers/message/fusion/mptsas.c +++ b/drivers/message/fusion/mptsas.c @@ -1343,6 +1343,8 @@ static int mptsas_smp_handler(struct Scsi_Host

Re: [PATCH] SMP request handlers need to update resid

2007-12-19 Thread Julian Calaby
On Dec 20, 2007 2:20 PM, FUJITA Tomonori [EMAIL PROTECTED] wrote: On Thu, 20 Dec 2007 14:13:15 +1100 Julian Calaby [EMAIL PROTECTED] wrote: On Dec 20, 2007 1:44 PM, FUJITA Tomonori [EMAIL PROTECTED] wrote: --- a/drivers/message/fusion/mptsas.c +++ b/drivers/message/fusion/mptsas.c