Re: [PATCH] sync_smb2_mid_result

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Mar 23, 2011 at 1:06 PM, Jeff Layton <jlayton@xxxxxxxxxx> wrote:>
> Maybe you misunderstand me.
>
> The struct is *exactly the same* aside from a few small differences. It
> doesn't even need to be a union, IMO. That would let you use a lot of
> the same code in transport.c for smb2.

I don't mind trying to condense it to one structure, but it is not that simple:
- smb2 doesn't need or sequence number, and the two transact2
multiresponse booleans
- cifs mid will grow by at least 10 bytes by expanding the mid, pid
etc. to the required minimum sizes.
- cifs mid doesn't need "async_response_received" or (that is an smb2
only feature and that or equivalent is required).  When we add chained
commands (common in smb2) then complex_mid or equivalent as well as
the command list, the number of the commands received and the last
response time of entries will be useless to cifs.



bool

-- 
Thanks,

Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux