* SMB2.1 leases support for CIFS kernel client
@ 2011-08-09 17:11 Pavel Shilovsky
[not found] ` <CAKywueQXSfX9bEySehuG_C_ikVnn8AK1zxuoybFx8JL9JKezGw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Pavel Shilovsky @ 2011-08-09 17:11 UTC (permalink / raw)
To: Christoph Hellwig, Jeff Layton, Steve French, Shirish Pargaonkar
Cc: linux-cifs-u79uwXL29TY76Z2rM5mHXA,
samba-technical-w/Ol4Ecudpl8XjKLYN78aQ
Hi all!
I implemented SMB2.1 leases support for cifs kernel module (in my
smb2-dev branch -
http://git.altlinux.org/people/piastry/public/?p=cifs-2.6.git;a=shortlog;h=refs/heads/smb2-dev).
Now open and create work with leases support - it means that we can
have several simulаneous opens for the same file and use cache for
read and write operations (in the case when we use the same superblock
for these opens).
Whole list of changes since the last status update:
1) SMB2 oplocks support (open, breaks).
2) SMB2.1 leases support (open, breaks).
3) strictcache i/o support for SMB2.
and other minor bugfixes and cleanups.
Your comments are appreciated!
--
Best regards,
Pavel Shilovsky.
^ permalink raw reply [flat|nested] 4+ messages in thread[parent not found: <CAKywueQXSfX9bEySehuG_C_ikVnn8AK1zxuoybFx8JL9JKezGw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: SMB2.1 leases support for CIFS kernel client [not found] ` <CAKywueQXSfX9bEySehuG_C_ikVnn8AK1zxuoybFx8JL9JKezGw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2011-08-09 18:00 ` J. Bruce Fields [not found] ` <20110809180004.GC16206-uC3wQj2KruNg9hUCZPvPmw@public.gmane.org> 2011-08-11 0:09 ` Pavel Shilovsky 1 sibling, 1 reply; 4+ messages in thread From: J. Bruce Fields @ 2011-08-09 18:00 UTC (permalink / raw) To: Pavel Shilovsky Cc: Christoph Hellwig, Jeff Layton, Steve French, Shirish Pargaonkar, linux-cifs-u79uwXL29TY76Z2rM5mHXA, samba-technical-w/Ol4Ecudpl8XjKLYN78aQ On Tue, Aug 09, 2011 at 09:11:20PM +0400, Pavel Shilovsky wrote: > Hi all! > > I implemented SMB2.1 leases support for cifs kernel module (in my > smb2-dev branch - > http://git.altlinux.org/people/piastry/public/?p=cifs-2.6.git;a=shortlog;h=refs/heads/smb2-dev). > Now open and create work with leases support - it means that we can > have several simulаneous opens for the same file and use cache for > read and write operations (in the case when we use the same superblock > for these opens). > > Whole list of changes since the last status update: > 1) SMB2 oplocks support (open, breaks). > 2) SMB2.1 leases support (open, breaks). > 3) strictcache i/o support for SMB2. > > and other minor bugfixes and cleanups. > > Your comments are appreciated! Just a trivial comment: I think that #ifdef CONFIG_CIFS_SMB2 in cifs_oplock_beak() is a case where the Linux convention of hiding the ifdef with a conditionally-defined function would be a lot cleaner.... --b. ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <20110809180004.GC16206-uC3wQj2KruNg9hUCZPvPmw@public.gmane.org>]
* Re: SMB2.1 leases support for CIFS kernel client [not found] ` <20110809180004.GC16206-uC3wQj2KruNg9hUCZPvPmw@public.gmane.org> @ 2011-08-10 22:46 ` Pavel Shilovsky 0 siblings, 0 replies; 4+ messages in thread From: Pavel Shilovsky @ 2011-08-10 22:46 UTC (permalink / raw) To: J. Bruce Fields Cc: Christoph Hellwig, Jeff Layton, Steve French, Shirish Pargaonkar, linux-cifs-u79uwXL29TY76Z2rM5mHXA, samba-technical-w/Ol4Ecudpl8XjKLYN78aQ 2011/8/9 J. Bruce Fields <bfields-uC3wQj2KruNg9hUCZPvPmw@public.gmane.org>: > On Tue, Aug 09, 2011 at 09:11:20PM +0400, Pavel Shilovsky wrote: >> Hi all! >> >> I implemented SMB2.1 leases support for cifs kernel module (in my >> smb2-dev branch - >> http://git.altlinux.org/people/piastry/public/?p=cifs-2.6.git;a=shortlog;h=refs/heads/smb2-dev). >> Now open and create work with leases support - it means that we can >> have several simulаneous opens for the same file and use cache for >> read and write operations (in the case when we use the same superblock >> for these opens). >> >> Whole list of changes since the last status update: >> 1) SMB2 oplocks support (open, breaks). >> 2) SMB2.1 leases support (open, breaks). >> 3) strictcache i/o support for SMB2. >> >> and other minor bugfixes and cleanups. >> >> Your comments are appreciated! > > Just a trivial comment: I think that #ifdef CONFIG_CIFS_SMB2 in > cifs_oplock_beak() is a case where the Linux convention of hiding the > ifdef with a conditionally-defined function would be a lot cleaner.... > > --b. > Thanks for your comment. I rewrote cifs_oplock_break with callbacks and generic function approach - changes are in my tree. -- Best regards, Pavel Shilovsky. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: SMB2.1 leases support for CIFS kernel client [not found] ` <CAKywueQXSfX9bEySehuG_C_ikVnn8AK1zxuoybFx8JL9JKezGw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2011-08-09 18:00 ` J. Bruce Fields @ 2011-08-11 0:09 ` Pavel Shilovsky 1 sibling, 0 replies; 4+ messages in thread From: Pavel Shilovsky @ 2011-08-11 0:09 UTC (permalink / raw) To: Christoph Hellwig, Jeff Layton, Steve French, Shirish Pargaonkar Cc: linux-cifs-u79uwXL29TY76Z2rM5mHXA, samba-technical-w/Ol4Ecudpl8XjKLYN78aQ 9 августа 2011 г. 21:11 пользователь Pavel Shilovsky <piastryyy-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> написал: > Hi all! > > I implemented SMB2.1 leases support for cifs kernel module (in my > smb2-dev branch - > http://git.altlinux.org/people/piastry/public/?p=cifs-2.6.git;a=shortlog;h=refs/heads/smb2-dev). > Now open and create work with leases support - it means that we can > have several simulаneous opens for the same file and use cache for > read and write operations (in the case when we use the same superblock > for these opens). > > Whole list of changes since the last status update: > 1) SMB2 oplocks support (open, breaks). > 2) SMB2.1 leases support (open, breaks). > 3) strictcache i/o support for SMB2. > > and other minor bugfixes and cleanups. > > Your comments are appreciated! > > -- > Best regards, > Pavel Shilovsky. > Rebased smb2-dev branch to the current master and fixed some bugs. I also got some performance testing results of comparison between write on several opens of the same file into different areas and write on several opens of different files on the same share: 1) 2 file descriptors SMB2 : write on 2 fds of the same file == write on 2 fds of different files. SMB2.1 : write on 2 fds of the same file is ~35% faster than write on 2 fds of different files (on the same share). 2) 3 file descriptors SMB2 : write on 3 fds of the same file == write on 3 fds of different files. SMB2.1 : write on 3 fds of the same file is ~50% faster than write on 3 fds of different files (on the same share). I am going to test it more - I will inform about the results when I get them. -- Best regards, Pavel Shilovsky. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-08-11 0:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-09 17:11 SMB2.1 leases support for CIFS kernel client Pavel Shilovsky
[not found] ` <CAKywueQXSfX9bEySehuG_C_ikVnn8AK1zxuoybFx8JL9JKezGw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-08-09 18:00 ` J. Bruce Fields
[not found] ` <20110809180004.GC16206-uC3wQj2KruNg9hUCZPvPmw@public.gmane.org>
2011-08-10 22:46 ` Pavel Shilovsky
2011-08-11 0:09 ` Pavel Shilovsky
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox