[PATCH v4 0/7] staging:lustre: remove tcpip abstraction from libcfs

2015-06-03 Thread James Simmons
Since libcfs no longer builds for user land we can move the TCPIP abstraction that exist to the LNET layer which is the only place that uses it. Also the migrated code will use native linux kernel APIs directly instead of with wrappers. Signed-off-by: James Simmons uja.o...@gmail.com Intel-bug-id

[PATCH v3 2/8] staging:lustre: fixup LNet resource container api

2015-06-03 Thread James Simmons
Both lnet_res_container_setup and lnet_res_container_create have additional parameters that are no longer used with the removal of the FREELIST code. This patch removes the no longer needed function arguments. Signed-off-by: James Simmons jsimm...@infradead.org --- drivers/staging/lustre/lnet

[PATCH v3 7/8] staging:lustre: style cleanups for LNet headers

2015-06-03 Thread James Simmons
Handle all the style issues reported by checkpatch.pl. Remove general white spaces, alignmemnts etc. Signed-off-by: James Simmons jsimm...@infradead.org --- drivers/staging/lustre/include/linux/lnet/api.h| 32 +- .../staging/lustre/include/linux/lnet/lib-lnet.h | 36 +- .../staging

[PATCH v3 1/8] staging:lustre: assume a kernel build

2015-06-03 Thread James Simmons
/LU-2675 Reviewed-on: http://review.whamcloud.com/13121 Reviewed-by: James Simmons uja.o...@gmail.com Reviewed-by: Amir Shehata amir.sheh...@intel.com Reviewed-by: Oleg Drokin oleg.dro...@intel.com --- .../staging/lustre/include/linux/lnet/lib-lnet.h | 215 +--- .../staging

[PATCH v3 4/8] staging:lustre: move LNet NID macros to LNet layer

2015-06-03 Thread James Simmons
Currently several special macros LNet NID macros exist in libcfs.h and libcfs_private.h. Move those macros out to the lnet header types.h. The new lnet header nidstr.h contains LNet NID string data that can be used by user land LNet utilities and the LNet kernel drivers. Signed-off-by: James

[PATCH v3 8/8] staging:lustre: Update license and copyright for the LNET headers

2015-06-03 Thread James Simmons
Point to the right place for GNU license. Update Intel copyright. Signed-off-by: James Simmons jsimm...@infradead.org --- drivers/staging/lustre/include/linux/lnet/api.h| 13 + .../staging/lustre/include/linux/lnet/lib-lnet.h | 10 +++--- .../staging/lustre/include

[PATCH v3 3/8] staging:lustre: delete no longer used LNet headers

2015-06-03 Thread James Simmons
that no longer exist are handled directly in the source code. Alongside that some user land router code is also removed. Signed-off-by: James Simmons jsimm...@infradead.org --- .../lustre/include/linux/lnet/api-support.h| 44 -- .../staging/lustre/include/linux/lnet/lib-lnet.h

[PATCH v3 0/8] staging:lustre: remove kernel defines in userland headers

2015-06-03 Thread James Simmons
land will use. Signed-off-by: James Simmons uja.o...@gmail.com Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6245 Reviewed-on: http://review.whamcloud.com/13792 Reviewed-by: John L. Hammond john.hamm...@intel.com Reviewed-by: Andreas Dilger andreas.dil...@intel.com James Simmons (7

[PATCH v3 5/8] staging:lustre: separate kernel and user land defines in the LNet headers

2015-06-03 Thread James Simmons
Currently the lnet headers used by user land contain various internal LNet structures that are only used by kernel space. Move the user land structures to headers used by user land. The kernel structures are relocated to headers that are never exposed to user land. Signed-off-by: James Simmons

[PATCH v3 6/8] staging:lustre: fix camel case for LNetInit and LNetFini

2015-06-03 Thread James Simmons
For the functions LNetInit and LNetFini move away from camel case to lnet_init and lnet_fini. Signed-off-by: James Simmons jsimm...@infradead.org --- drivers/staging/lustre/include/linux/lnet/api.h|3 --- .../staging/lustre/include/linux/lnet/lib-lnet.h |3 +++ .../staging/lustre

[PATCH v4 2/7] staging:lustre: remove useless libcfs_sock_release

2015-06-03 Thread James Simmons
There is no reason to have a one line exported function libcfs_sock_release. Instead we can call sock_release directly. Signed-off-by: James Simmons jsimm...@infradead.org --- .../staging/lustre/include/linux/libcfs/libcfs.h |1 - .../staging/lustre/lnet/klnds/socklnd/socklnd.c|2

[PATCH v4 5/7] staging:lustre: use available kernel wrappers in lib-socket.c

2015-06-03 Thread James Simmons
Instead of handling calls to struct proto ourselves we can use equivalent kernel wrappers. No wrapper exist for unlocked ioctl handling so we create one here for our use. I expect some day that function will be integrated into sock.c. Signed-off-by: James Simmons jsimm...@infradead.org

[PATCH v4 3/7] staging:lustre: remove useless libcfs_sock_abort_accept

2015-06-03 Thread James Simmons
Another one of those silly one line wrappers which is not needed. Replace libcfs_sock_abort_accept wrapper with a direct call to wake_up_all on the lnet_acceptor_state sock. Signed-off-by: James Simmons jsimm...@infradead.org --- .../staging/lustre/include/linux/libcfs/libcfs.h |1

[PATCH v4 1/7] staging:lustre: move tcpip abstraction

2015-06-03 Thread James Simmons
Rename libcfs/linux/linux-tcpip.c to lnet/lnet/lib-socket.c Signed-off-by: James Simmons jsimm...@infradead.org --- drivers/staging/lustre/lnet/lnet/Makefile |7 +- drivers/staging/lustre/lnet/lnet/lib-socket.c | 624 drivers/staging/lustre/lustre/libcfs

[PATCH v4 6/7] staging:lustre: style cleanups for lib-socket.c

2015-06-03 Thread James Simmons
Handle all the style issues reported by checkpatch.pl. Remove general white spaces, spaces in function calls, etc. Signed-off-by: James Simmons jsimm...@infradead.org --- .../staging/lustre/lnet/klnds/socklnd/socklnd.c|4 +- drivers/staging/lustre/lnet/lnet/lib-socket.c | 207

[PATCH v4 7/7] staging:lustre: Update license and copyright for lib-socket.c

2015-06-03 Thread James Simmons
Point to the right place for GNU license. Update Intel copyright. Signed-off-by: James Simmons jsimm...@infradead.org --- drivers/staging/lustre/lnet/lnet/lib-socket.c | 10 +++--- 1 files changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/staging/lustre/lnet/lnet/lib-socket.c

[PATCH v4 4/7] staging:lustre: rename tcpip handling functions to lnet_* prefix

2015-06-03 Thread James Simmons
With all the TCPIP handling done in the lnet layer we should rename all the functions with the prefix lnet_*. One other change done was changing the remove argument of lnet_sock_getaddr from a int to a bool. Signed-off-by: James Simmons jsimm...@infradead.org --- .../staging/lustre/include/linux

[PATCH v2] staging:lustre: cleanup libcfs lock handling

2015-06-03 Thread James Simmons
that are pushed in this patch. Signed-off-by: James Simmons uja.o...@gmail.com Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6245 Reviewed-on: http://review.whamcloud.com/13793 Reviewed-by: Dmitry Eremin dmitry.ere...@intel.com Reviewed-by: John L. Hammond john.hamm...@intel.com Reviewed

[PATCH v5 7/7] staging:lustre: Update license and copyright for lib-socket.c

2015-06-08 Thread James Simmons
Point to the right place for GNU license. Update Intel copyright. Signed-off-by: James Simmons jsimm...@infradead.org --- drivers/staging/lustre/lnet/lnet/lib-socket.c | 10 +++--- 1 files changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/staging/lustre/lnet/lnet/lib-socket.c

[PATCH v5 6/7] staging:lustre: lib-socket.c code cleanup - indentation etc

2015-06-08 Thread James Simmons
Handle all the style issues reported by checkpatch.pl. Remove general white spaces, spaces in function calls, etc. Signed-off-by: James Simmons jsimm...@infradead.org --- .../staging/lustre/lnet/klnds/socklnd/socklnd.c|4 +- drivers/staging/lustre/lnet/lnet/lib-socket.c | 203

[PATCH v5 4/7] staging:lustre: rename tcpip handling functions to lnet_* prefix

2015-06-08 Thread James Simmons
With all the TCPIP handling done in the lnet layer we should rename all the functions with the prefix lnet_*. One other change done was changing the remove argument of lnet_sock_getaddr from a int to a bool. Signed-off-by: James Simmons jsimm...@infradead.org --- .../staging/lustre/include/linux

[PATCH v5 5/7] staging:lustre: use available kernel wrappers in lib-socket.c

2015-06-08 Thread James Simmons
Instead of handling calls to struct proto ourselves we can use equivalent kernel wrappers. No wrapper exist for unlocked ioctl handling so we create one here for our use. I expect some day that function will be integrated into sock.c. Signed-off-by: James Simmons jsimm...@infradead.org

[PATCH v5 2/7] staging:lustre: remove useless libcfs_sock_release

2015-06-08 Thread James Simmons
There is no reason to have a one line exported function libcfs_sock_release. Instead we can call sock_release directly. Signed-off-by: James Simmons jsimm...@infradead.org --- .../staging/lustre/include/linux/libcfs/libcfs.h |1 - .../staging/lustre/lnet/klnds/socklnd/socklnd.c|2

[PATCH v5 3/7] staging:lustre: remove useless libcfs_sock_abort_accept

2015-06-08 Thread James Simmons
Another one of those silly one line wrappers which is not needed. Replace libcfs_sock_abort_accept wrapper with a direct call to wake_up_all on the lnet_acceptor_state sock. Signed-off-by: James Simmons jsimm...@infradead.org --- .../staging/lustre/include/linux/libcfs/libcfs.h |1

[PATCH v5 0/7] staging:lustre: remove tcpip abstraction from libcfs

2015-06-08 Thread James Simmons
Since libcfs no longer builds for user land we can move the TCPIP abstraction that exist to the LNET layer which is the only place that uses it. Also the migrated code will use native linux kernel APIs directly instead of with wrappers. Signed-off-by: James Simmons uja.o...@gmail.com Intel-bug-id

[PATCH v3 1/7] staging:lustre: move tcpip abstraction

2015-06-03 Thread James Simmons
Rename libcfs/linux/linux-tcpip.c to lnet/lnet/lib-socket.c Signed-off-by: James Simmons jsimm...@infradead.org --- drivers/staging/lustre/lnet/lnet/Makefile |7 +- drivers/staging/lustre/lnet/lnet/lib-socket.c | 624 drivers/staging/lustre/lustre/libcfs

[PATCH v3 3/7] staging:lustre: remove useless libcfs_sock_abort_accept

2015-06-03 Thread James Simmons
Another one of those silly one line wrappers which is not needed. Replace libcfs_sock_abort_accept wrapper with a direct call to wake_up_all on the lnet_acceptor_state sock. Signed-off-by: James Simmons jsimm...@infradead.org --- .../staging/lustre/include/linux/libcfs/libcfs.h |1

[PATCH v3 0/7] staging:lustre: remove tcpip abstraction from libcfs

2015-06-03 Thread James Simmons
Since libcfs no longer builds for user land we can move the TCPIP abstraction that exist to the LNET layer which is the only place that uses it. Also the migrated code will use native linux kernel APIs directly instead of with wrappers. Signed-off-by: James Simmons uja.o...@gmail.com Intel-bug-id

[PATCH v3 4/7] staging:lustre: rename tcpip handling functions to lnet_* prefix

2015-06-03 Thread James Simmons
With all the TCPIP handling done in the lnet layer we should rename all the functions with the prefix lnet_*. One other change done was changing the remove argument of lnet_sock_getaddr from a int to a bool. Signed-off-by: James Simmons jsimmons at infradead.org --- .../staging/lustre/include

[PATCH v3 6/7] staging:lustre: style cleanups for lib-socket.c

2015-06-03 Thread James Simmons
Handle all the style issues reported by checkpatch.pl. Remove general white spaces, spaces in function calls, etc. Signed-off-by: James Simmons jsimm...@infradead.org --- .../staging/lustre/lnet/klnds/socklnd/socklnd.c|4 +- drivers/staging/lustre/lnet/lnet/lib-socket.c | 210

[PATCH v3 5/7] staging:lustre: use available kernel wrappers in lib-socket.c

2015-06-03 Thread James Simmons
Instead of handling calls to struct proto ourselves we can use equivalent kernel wrappers. No wrapper exist for unlocked ioctl handling so we create one here for our use. I expect some day that function will be integrated into sock.c. Signed-off-by: James Simmons jsimm...@infradead.org

[PATCH v3 2/7] staging:lustre: remove useless libcfs_sock_release

2015-06-03 Thread James Simmons
There is no reason to have a one line exported function libcfs_sock_release. Instead we can call sock_release directly. Signed-off-by: James Simmons jsimm...@infradead.org --- .../staging/lustre/include/linux/libcfs/libcfs.h |1 - .../staging/lustre/lnet/klnds/socklnd/socklnd.c|2

[PATCH] staging:lustre: remove irq.h from socklnd.h

2015-06-25 Thread James Simmons
The header socklnd.h includes irq.h which is not need and doesn't exist in the OpenSFS lustre branch. Having irq.h in socklnd.h does break the build on the m68k platform. So we can safely remove it. Signed-off-by: James Simmons jsimm...@infradead.org --- .../staging/lustre/lnet/klnds/socklnd

[PATCH 0/9] staging:lustre: remove kernel defines in userland headers

2015-06-11 Thread James Simmons
land will use. Signed-off-by: James Simmons uja.o...@gmail.com Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6245 Reviewed-on: http://review.whamcloud.com/13792 Reviewed-by: John L. Hammond john.hamm...@intel.com Reviewed-by: Andreas Dilger andreas.dil...@intel.com James Simmons (6

[PATCH v4 3/9] staging:lustre: rename socklnd_lib-linux.c

2015-06-11 Thread James Simmons
...@intel.com Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-2675 Reviewed-on: http://review.whamcloud.com/12932 Reviewed-by: Isaac Huang he.hu...@intel.com Reviewed-by: James Simmons uja.o...@gmail.com Reviewed-by: Oleg Drokin oleg.dro...@intel.com Signed-off-by: James Simmons jsimm...@infradead.org

[PATCH v4 5/9] staging:lustre: move LNet NID macros to LNet layer

2015-06-11 Thread James Simmons
Currently several special macros LNet NID macros exist in libcfs.h and libcfs_private.h. Move those macros out to the lnet header types.h. The new lnet header nidstr.h contains LNet NID string data that can be used by user land LNet utilities and the LNet kernel drivers. Signed-off-by: James

[PATCH v4 1/9] staging:lustre: Delete all obsolete LND drivers

2015-06-11 Thread James Simmons
Remove ralnd, ptllnd, mxlnd, qswlnd drivers. They are no longer supported and have not even been buildable for a long time. Signed-off-by: James Simmons uja.o...@gmail.com Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6209 Reviewed-on: http://review.whamcloud.com/13663 Reviewed-by: Isaac

[PATCH v4 2/9] staging:lustre: remove lnet/include/lnet/linux/

2015-06-11 Thread James Simmons
-2675 Reviewed-on: http://review.whamcloud.com/12932 Reviewed-by: Isaac Huang he.hu...@intel.com Reviewed-by: James Simmons uja.o...@gmail.com Reviewed-by: Oleg Drokin oleg.dro...@intel.com --- .../lustre/include/linux/lnet/api-support.h| 44 -- .../staging/lustre/include/linux/lnet/lib

[PATCH v4 6/9] staging:lustre: separate kernel and user land defines in the LNet headers

2015-06-11 Thread James Simmons
Currently the lnet headers used by user land contain various internal LNet structures that are only used by kernel space. Move the user land structures to headers used by user land. The kernel structures are relocated to headers that are never exposed to user land. Signed-off-by: James Simmons

[PATCH v4 9/9] staging:lustre: Update license and copyright for the LNET headers

2015-06-11 Thread James Simmons
Point to the right place for GNU license. Update Intel copyright. Signed-off-by: James Simmons jsimm...@infradead.org --- drivers/staging/lustre/include/linux/lnet/api.h| 13 + .../staging/lustre/include/linux/lnet/lib-lnet.h | 10 +++--- .../staging/lustre/include

[PATCH v4 8/9] staging:lustre: LNet header code cleanup - indentation etc

2015-06-11 Thread James Simmons
Handle all the style issues reported by checkpatch.pl. Remove general white spaces, spaces in function calls, alignments etc. Signed-off-by: James Simmons jsimm...@infradead.org --- drivers/staging/lustre/include/linux/lnet/api.h| 32 +- .../staging/lustre/include/linux/lnet/lib-lnet.h

[PATCH v4 4/9] staging:lustre: merge socklnd_lib-linux.h into socklnd.h

2015-06-11 Thread James Simmons
that was merged to the Intel/OpenSFS branch. Signed-off-by: John L. Hammond john.hamm...@intel.com Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-2675 Reviewed-on: http://review.whamcloud.com/12932 Reviewed-by: Isaac Huang he.hu...@intel.com Reviewed-by: James Simmons uja.o...@gmail.com Reviewed

[PATCH v4 7/9] staging:lustre: fix camel case for LNetInit and LNetFini

2015-06-11 Thread James Simmons
For the functions LNetInit and LNetFini move away from camel case to lnet_init and lnet_fini. Signed-off-by: James Simmons jsimm...@infradead.org --- drivers/staging/lustre/include/linux/lnet/api.h|3 --- .../staging/lustre/include/linux/lnet/lib-lnet.h |3 +++ .../staging/lustre

[PATCH 0/3] First set of Intel branch merger for libcfs/lnet

2015-05-21 Thread James Simmons
This is the first set of patches that are current in the Intel branch which are apart of the effort to cleanup LNet/libcfs. James Simmons (3): staging:lustre: remove tcpip abstraction from libcfs staging:lustre: remove kernel defines in userland headers staging:lustre: cleanup libcfs lock

[PATCH 2/3] staging:lustre: remove kernel defines in userland headers

2015-05-21 Thread James Simmons
From: James Simmons uja.o...@yahoo.com Currently the lnet headers used for user land applications contain various kernel definations. This is due to the fact libcfs contains kernel wrappers for user land which will be going away. This patch sorted the header data so all kernel containing

[PATCH 1/3] staging:lustre: remove tcpip abstraction from libcfs

2015-05-21 Thread James Simmons
From: James Simmons uja.o...@yahoo.com Since libcfs no longer builds for user land we can move the TCPIP abstraction that exist to the LNET layer which is the only place that uses it. Also the migrated code will use native linux kernel APIs directly instead of with wrappers. Signed-off-by: James

[PATCH 3/3] staging:lustre: cleanup libcfs lock handling

2015-05-21 Thread James Simmons
that are pushed in this patch. Signed-off-by: James Simmons uja.o...@gmail.com Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6245 Reviewed-on: http://review.whamcloud.com/13793 Reviewed-by: Dmitry Eremin dmitry.ere...@intel.com Reviewed-by: John L. Hammond john.hamm...@intel.com Reviewed

[PATCH 1/6] staging:lustre:remove useless libcfs_sock_release

2015-05-22 Thread James Simmons
There is no reason to have a one line exported function libcfs_sock_release. Instead we can call sock_release directly. Signed-off-by: James Simmons jsimm...@infradead.org --- .../staging/lustre/include/linux/libcfs/libcfs.h |1 - .../staging/lustre/lnet/klnds/socklnd/socklnd.c|2

[PATCH 6/6] staging:lustre: Update license and copyright for lib-socket.c

2015-05-22 Thread James Simmons
Point to the right place for GNU license. Update Intel copyright. Signed-off-by: James Simmons jsimm...@infradead.org --- drivers/staging/lustre/lnet/lnet/lib-socket.c | 10 +++--- 1 files changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/staging/lustre/lnet/lnet/lib-socket.c

[PATCH 2/6] staging:lustre:remove useless libcfs_sock_abort_accept

2015-05-22 Thread James Simmons
Another one of those silly one line wrappers which is not needed. Replace libcfs_sock_abort_accept wrapper with a direct call to wake_up_all on the lnet_acceptor_state sock. Signed-off-by: James Simmons jsimm...@infradead.org --- .../staging/lustre/include/linux/libcfs/libcfs.h |1

[PATCH 3/6] staging:lustre: rename tcpip handling functions to lnet_* prefix

2015-05-22 Thread James Simmons
With all the TCPIP handling done in the lnet layer we should rename all the functions with the prefix lnet_*. One other change done was changing the remove argument of lnet_sock_getaddr from a int to a bool. Signed-off-by: James Simmons jsimm...@infradead.org --- .../staging/lustre/include/linux

[PATCH 5/6] staging:lustre: style cleanups for lib-socket.c

2015-05-22 Thread James Simmons
Handle all the style issues reported by checkpatch.pl. Remove general white spaces, spaces in function calls, etc. Signed-off-by: James Simmons jsimm...@infradead.org --- .../staging/lustre/lnet/klnds/socklnd/socklnd.c|4 +- drivers/staging/lustre/lnet/lnet/lib-socket.c | 210

[PATCH 4/6] staging:lustre: use available kernel wrappers in lib-socket.c

2015-05-22 Thread James Simmons
Instead of handling calls to struct proto ourselves we can use equivalent kernel wrappers. No wrapper exist for unlocked ioctl handling so we create one here for our use. I expect some day that function will be integrated into sock.c. Signed-off-by: James Simmons jsimm...@infradead.org

[PATCH 5/6] staging: lustre: remove white space in hash.c

2015-10-29 Thread James Simmons
From: James Simmons <uja.o...@yahoo.com> Cleanup all the unneeded white space in hash.c. Signed-off-by: James Simmons <jsimm...@infradead.org> --- drivers/staging/lustre/lustre/libcfs/hash.c | 342 ++- 1 files changed, 177 insertions(+), 165 deletions(-)

[PATCH 1/6] staging: lustre: remove white space in libcfs_hash.h

2015-10-29 Thread James Simmons
From: James Simmons <uja.o...@yahoo.com> Cleanup all the unneeded white space in libcfs_hash.h. Signed-off-by: James Simmons <jsimm...@infradead.org> --- .../lustre/include/linux/libcfs/libcfs_hash.h | 135 ++-- 1 files changed, 70 insertions(+), 65 deleti

[PATCH 2/6] staging: lustre: remove obsolete comment in libcfs_hash.h

2015-10-29 Thread James Simmons
From: James Simmons <uja.o...@yahoo.com> Remove comment hash_long which was removed long ago. Signed-off-by: James Simmons <jsimm...@infradead.org> --- .../lustre/include/linux/libcfs/libcfs_hash.h |7 --- 1 files changed, 0 insertions(+), 7 deletions(-) diff --g

[PATCH 0/6] staging: lustre: second series for libcfs hash code cleanup

2015-10-29 Thread James Simmons
From: James Simmons <uja.o...@yahoo.com> This patch covers more style cleanup series for the libcfs hash code. Mostly removal of white spaces and resolving the checkpath issues in libcfs_hash.h. James Simmons (6): staging: lustre: remove white space in libcfs_hash.h staging: lustre:

[PATCH 3/6] staging: lustre: move linux hash.h header to start of libcfs_hash.h

2015-10-29 Thread James Simmons
From: James Simmons <uja.o...@yahoo.com> Minor style cleanup to put hash.h header to the top of the libcfs_hash.h file. Signed-off-by: James Simmons <jsimm...@infradead.org> --- .../lustre/include/linux/libcfs/libcfs_hash.h |5 +++-- 1 files changed, 3 insertions(+),

[PATCH 4/6] staging: lustre: fix remaining checkpatch issues for libcfs_hash.h

2015-10-29 Thread James Simmons
From: James Simmons <uja.o...@yahoo.com> Final cleanup to make libcfs_hash.h completely kernel standard compliant. Signed-off-by: James Simmons <jsimm...@infradead.org> --- .../lustre/include/linux/libcfs/libcfs_hash.h | 25 --- 1 files changed, 16 inse

[PATCH 6/6] staging: lustre: place linux header first in hash.c

2015-10-29 Thread James Simmons
From: James Simmons <uja.o...@yahoo.com> Always place linux headers first in libcfs header files. This avoid can potential build issues if any changes to a libcfs header land that starts using a linux header definition. Signed-off-by: James Simmons <jsimm...@infradead.org> --- dri

[PATCH 3/3] staging: lustre: checkpatch cleanups for nidstr.h

2015-10-29 Thread James Simmons
With nidstr.h now having the latest fixes we can now clean up all the remaining checkpatch errors for this header. Signed-off-by: James Simmons <jsimm...@infradead.org> --- drivers/staging/lustre/include/linux/lnet/nidstr.h |9 +++-- 1 files changed, 7 insertions(+), 2 deletions(-)

[PATCH 1/3] staging: lustre: checkpatch cleanups for nidstring.c

2015-10-29 Thread James Simmons
With nidstring now having the latest fixes we can now clean up all the remaining checkpatch errors for nidstring.c. Signed-off-by: James Simmons <jsimm...@infradead.org> --- drivers/staging/lustre/lnet/lnet/nidstrings.c | 80 ++--- 1 files changed, 44 insertions(

[PATCH 2/3] staging: lustre: white space cleanups for nidstring.c

2015-10-29 Thread James Simmons
Remove the remaining white spaces in nidstring.c. Signed-off-by: James Simmons <jsimm...@infradead.org> --- drivers/staging/lustre/lnet/lnet/nidstrings.c | 18 +- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/staging/lustre/lnet/lnet/nidstring

[PATCH 0/3] make nidstring.c kernel style compliant

2015-10-29 Thread James Simmons
Last patch set to make nidstring.c and nidstr.h both report no errors with checkpatch and removal of the remaining white spaces. James Simmons (3): staging: lustre: checkpatch cleanups for nidstring.c staging: lustre: white space cleanups for nidstring.c staging: lustre: checkpatch cleanups

[PATCH 07/10] staging: lustre: cleanup over 80 characters in libcfs_hash.h

2015-10-28 Thread James Simmons
From: James Simmons <uja.o...@yahoo.com> Fix up all the over 80 character line issues in libcfs_hash.h reported by checkpatch.pl. At the same time update this header to match what is in the OpenSFS lustre branch. Signed-off-by: James Simmons <jsimm...@infradead.org> --- .../lustre/i

[PATCH 03/10] staging: lustre: change cfs_hash_ops_t to struct

2015-10-28 Thread James Simmons
From: James Simmons <uja.o...@yahoo.com> Change cfs_hash_ops_t to struct cfs_hash_ops. Signed-off-by: James Simmons <jsimm...@infradead.org> --- .../lustre/include/linux/libcfs/libcfs_hash.h | 21 ++- drivers/staging/lustre/lustre/ldlm/ldlm_resou

[PATCH 09/10] staging: lustre: fix remaining checkpatch issues for libcfs_hash.h

2015-10-28 Thread James Simmons
From: James Simmons <uja.o...@yahoo.com> Final cleanup to make libcfs_hash.h completely kernel standard compliant. Signed-off-by: James Simmons <jsimm...@infradead.org> --- .../lustre/include/linux/libcfs/libcfs_hash.h | 16 ++-- 1 files changed, 10 insertions(+),

[PATCH 06/10] staging: lustre: convert last typedef data types in hash.c

2015-10-28 Thread James Simmons
From: James Simmons <uja.o...@yahoo.com> Change the last typedef data types cfs_hash_lookup_intent_t to enum and cfs_hash_cond_arg_t to a structure. Signed-off-by: James Simmons <jsimm...@infradead.org> --- drivers/staging/lustre/lustre/libcfs/hash.c | 18 +- 1 f

[PATCH 04/10] staging: lustre: change cfs_hash_dhead*_t to struct

2015-10-28 Thread James Simmons
From: James Simmons <uja.o...@yahoo.com> Change cfs_hash_dhead_t and cfs_head_dhead_dep_to from typedef to true structures. Signed-off-by: James Simmons <jsimm...@infradead.org> --- .../lustre/include/linux/libcfs/libcfs_hash.h |4 +- drivers/staging/lustre/lustre/l

[PATCH 08/10] staging: lustre: remove white space in libcfs_hash.h

2015-10-28 Thread James Simmons
From: James Simmons <uja.o...@yahoo.com> Cleanup all the unneeded white space in libcfs_hash.h. Signed-off-by: James Simmons <jsimm...@infradead.org> --- .../lustre/include/linux/libcfs/libcfs_hash.h | 147 ++-- 1 files changed, 73 insertions(+), 74 deleti

[PATCH 05/10] staging: lustre: change cfs_hash_head*_t to struct

2015-10-28 Thread James Simmons
From: James Simmons <uja.o...@yahoo.com> Change cfs_hash_head_t and cfs_head_head_dep_t from typedef to true structures. Signed-off-by: James Simmons <jsimm...@infradead.org> --- .../lustre/include/linux/libcfs/libcfs_hash.h |4 +- drivers/staging/lustre/lustre/l

[PATCH 10/10] staging: lustre: remove white space in hash.c

2015-10-28 Thread James Simmons
From: James Simmons <uja.o...@yahoo.com> Cleanup all the unneeded white space in hash.c. Signed-off-by: James Simmons <jsimm...@infradead.org> --- drivers/staging/lustre/lustre/libcfs/hash.c | 336 ++- 1 files changed, 174 insertions(+), 162 deletions(-)

[PATCH 00/10] staging: lustre: cleanup up libcfs hash code for upstream

2015-10-28 Thread James Simmons
From: James Simmons <uja.o...@yahoo.com> This patch brings the libcfs hash handling up to linux kernel coding style. Various typedefs and macros have been removed. Signed-off-by: James Simmons <uja.o...@yahoo.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6245 Revie

[PATCH 01/10] staging: lustre: change cfs_hash_lock_ops_t to struct

2015-10-28 Thread James Simmons
From: James Simmons <uja.o...@yahoo.com> Change cfs_hash_lock_ops_t to struct cfs_hash_lock_ops. Signed-off-by: James Simmons <jsimm...@infradead.org> --- .../lustre/include/linux/libcfs/libcfs_hash.h |4 ++-- drivers/staging/lustre/lustre/libcfs/hash.c| 12 +++

[PATCH 02/10] staging: lustre: change cfs_hash_hlist_ops_t to struct

2015-10-28 Thread James Simmons
From: James Simmons <uja.o...@yahoo.com> Change cfs_hash_hlist_ops_t to struct cfs_hash_hlist_ops. Signed-off-by: James Simmons <jsimm...@infradead.org> --- .../lustre/include/linux/libcfs/libcfs_hash.h |4 ++-- drivers/staging/lustre/lustre/libcfs/hash.c|8

[PATCH 0/5] staging:lustre: split kernel comm between user and kernel

2015-10-23 Thread James Simmons
: http://review.whamcloud.com/14270 Reviewed-by: Nathan Rutman <nathan.rut...@seagate.com> Reviewed-by: James Simmons <uja.o...@yahoo.com> Reviewed-by: Dmitry Eremin <dmitry.ere...@intel.com> Reviewed-by: John L. Hammond <john.hamm...@intel.com> Reviewed-by: Oleg Drokin <oleg.d

[PATCH] staging:lustre: move kernel_user_comm.c from libcfs to lustre

2015-10-23 Thread James Simmons
<nathan.rut...@seagate.com> Reviewed-by: James Simmons <uja.o...@yahoo.com> Reviewed-by: Dmitry Eremin <dmitry.ere...@intel.com> Reviewed-by: John L. Hammond <john.hamm...@intel.com> Reviewed-by: Oleg Drokin <oleg.dro...@intel.com> Signed-off-by: James Simmons <jsimm.

[PATCH 4/5] staging:lustre: split kernel comm between user and kernel

2015-10-23 Thread James Simmons
Reviewed-by: James Simmons <uja.o...@yahoo.com> Reviewed-by: Dmitry Eremin <dmitry.ere...@intel.com> Reviewed-by: John L. Hammond <john.hamm...@intel.com> Reviewed-by: Oleg Drokin <oleg.dro...@intel.com> Signed-off-by: James Simmons <jsimm...@infradead.org> ---

[PATCH 5/5] staging:lustre: Update license and copyright for kernel comm

2015-10-23 Thread James Simmons
245 Reviewed-on: http://review.whamcloud.com/14270 Reviewed-by: Nathan Rutman <nathan.rut...@seagate.com> Reviewed-by: James Simmons <uja.o...@yahoo.com> Reviewed-by: Dmitry Eremin <dmitry.ere...@intel.com> Reviewed-by: John L. Hammond <john.hamm...@intel.com> Reviewed-by

[PATCH 1/5] staging:lustre: kg_sem semaphore handling is incorrectly

2015-10-23 Thread James Simmons
During the removal of the cfs wrappers the kg_sem semaphore was handled incorrectly. We need to take a write lock when writing data to the kkuc_groups. The libcfs_kkuc_group_foreach needs to only take a read lock. This makes use match the OpenSFS development branch. Signed-off-by: James Simmons

[PATCH 07/11] staging: lustre: Avoid nid range related forward declarations in nidstring.c

2015-10-21 Thread James Simmons
Since forward declarations are frowned on upstream we move the NID range handling to near the start of the nidstring.c file. Signed-off-by: James Simmons <uja.o...@yahoo.com> Reviewed-on: http://review.whamcloud.com/15086 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6245 Re

[PATCH 08/11] staging: lustre: add in NID range management for libcfs

2015-10-21 Thread James Simmons
From: Joshua Walgenbach This is a partial backport of the NID range management added in for nodemap. We only backport the libcfs related parts here. Signed-off-by: Joshua Walgenbach Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3527 Reviewed-on:

[PATCH 01/11] staging: lustre: add a service that prints a nidlist

2015-10-21 Thread James Simmons
om/browse/LU-1778 Reviewed-on: http://review.whamcloud.com/9221 Reviewed-by: Andreas Dilger <andreas.dil...@intel.com> Reviewed-by: Liang Zhen <liang.z...@intel.com> Reviewed-by: Oleg Drokin <oleg.dro...@intel.com> Signed-off-by: James Simmons <uja.o...@yahoo.com>

[PATCH 10/11] staging: lustre: remove last entry of libcfs_netstrfns[]

2015-10-21 Thread James Simmons
if we just remove the last entry since it is not used for anything except as a last entry marker. Signed-off-by: Frederic Saunier <frederic.saun...@atos.net> Signed-off-by: James Simmons <uja.o...@yahoo.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6501 Reviewed-on: http://re

[PATCH 05/11] staging: lustre: move struct netstrfns to nidstr.h

2015-10-21 Thread James Simmons
-off-by: James Simmons <uja.o...@yahoo.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6245 Reviewed-on: http://review.whamcloud.com/15083 Reviewed-by: Dmitry Eremin <dmitry.ere...@intel.com> Reviewed-by: Bob Glossman <bob.gloss...@intel.com> Reviewed-by: Oleg Drokin <

[PATCH 11/11] staging: lustre: Use C99 initializers for struct netstrfns

2015-10-21 Thread James Simmons
Update struct netstrfns to use C99 initializers. Remove old LND types from the netstrfns table, as they are long obsolete and shouldn't be needed even for interop anymore. Signed-off-by: James Simmons <uja.o...@yahoo.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6210 Reviewed-on

[PATCH 02/11] staging: lustre: move nidstring handling to LNet layer

2015-10-21 Thread James Simmons
MAX_NUMERIC_VALUE defination. Signed-off-by: James Simmons <jsimm...@infradead.org> --- drivers/staging/lustre/lnet/lnet/Makefile |2 +- .../{lustre/libcfs => lnet/lnet}/nidstrings.c | 13 + drivers/staging/lustre/lustre/libcfs/Makefile |2 +- ..

[PATCH 06/11] staging: lustre: move cfs_ip_addr_* function from kernel libcfs to LNet

2015-10-21 Thread James Simmons
Both of cfs_ip_addr_parse and cfs_ip_addr_match which are located in libcfs kernel module are used only for LNet so move this into the nidstring handling code where it belongs. Also create user land versions of these functions in the libcfs user land library. Signed-off-by: James Simmons <uj

[PATCH 04/11] staging: lustre: remove cfs_ip_addr_free wrapper

2015-10-21 Thread James Simmons
No need to have a one line wrapper in libcfs that only is used to delete a list which is only done once in the LNet layer. Signed-off-by: James Simmons <jsimm...@infradead.org> --- .../lustre/include/linux/libcfs/libcfs_string.h|1 - drivers/staging/lustre/lnet/lnet/co

[PATCH 03/11] staging: lustre: remove libcfs_init_string function

2015-10-21 Thread James Simmons
All the function libcfs_init_string did was initialize a spinlock. We can initialize the spinlock statically instead. Signed-off-by: James Simmons <jsimm...@infradead.org> --- .../staging/lustre/include/linux/libcfs/libcfs.h |2 -- drivers/staging/lustre/lnet/lnet/nidstrings.c

[PATCH 09/11] staging: lustre: provide separate buffers for libcfs_*2str()

2015-10-21 Thread James Simmons
From: Dmitry Eremin Provide duplicates with separate buffers for libcfs_*2str() functions. Replace libcfs_nid2str() with libcfs_nid2str_r() function in critical places. Provide buffer size for nf_addr2str functions. Use __u32 as nf_type always Signed-off-by: Dmitry

[PATCH] staging: lustre: added debugging ability for LFSCK

2015-11-08 Thread James Simmons
From: Fan Yong Add the ability to debug LFSCK to libcfs. This is broken out of patch http://review.whamcloud.com/6321. Signed-off-by: Fan Yong Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-2914 Reviewed-on: http://review.whamcloud.com/6321

[PATCH] staging: lustre: add sparse locking annotations

2015-11-08 Thread James Simmons
From: frank zago Adds __acquires / __releases / __must_hold sparse locking annotations to several functions. Fixes sparse warnings such as: libcfs/libcfs/hash.c:127:1: warning: context imbalance in 'cfs_hash_spin_lock' - wrong count at exit libcfs/libcfs/hash.c:133:1:

[PATCH] staging: lustre: add libcfs version of cfs_strrstr

2015-11-08 Thread James Simmons
From: Fan Yong Create a kernel side function that does the same thing as userland strrstr. This is from patch http://review.whamcloud.com/7666. Signed-off-by: Fan Yong ntel-bug-id: https://jira.hpdd.intel.com/browse/LU-3951 Reviewed-on:

[PATCH v2] staging: lustre: remove IOC_LIBCFS_PING_TEST ioctl

2015-11-08 Thread James Simmons
-by: James Simmons <jsimm...@infradead.org> --- .../lustre/include/linux/libcfs/libcfs_ioctl.h |1 - drivers/staging/lustre/lustre/libcfs/module.c | 17 - 2 files changed, 0 insertions(+), 18 deletions(-) diff --git a/drivers/staging/lustre/include/linux/

[PATCH] staging: lustre: export cfs_str2mask

2015-11-08 Thread James Simmons
We need cfs_str2mask exported for our server code. Even with the server code not available upstream it would be nice to use the upstream code on Lustre servers. Signed-off-by: James Simmons <jsimm...@infradead.org> --- .../staging/lustre/lustre/libcfs/libcfs_string.c |1 + 1 files c

[PATCH] staging: lustre: Handle nodemask on UMP machines

2015-11-08 Thread James Simmons
version of cfs_cpt_nodemask and use that in ost_setup. Signed-off-by: James Simmons <uja.o...@gmail.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4199 Reviewed-on: http://review.whamcloud.com/9219 Reviewed-by: Liang Zhen <liang.z...@intel.com> Reviewed-by: Li Xi <pkuel

[PATCH] staging: lustre: enum lu_object_header_flags comma style fix

2015-11-08 Thread James Simmons
From: Fan Yong Cleanup the a style issues for the lu_object_header_flags enum by adding a comma for the last field. This is broken out of patch http://review.whamcloud.com/6321. Signed-off-by: Fan Yong Intel-bug-id:

[PATCH 11/13] staging: lustre: use proper braces in libcfs_kkuc_group_put

2015-11-08 Thread James Simmons
Add in missing braces for libcfs_kkuc_group_put();. Signed-off-by: James Simmons <jsimm...@infradead.org> --- .../staging/lustre/lustre/obdclass/kernelcomm.c|4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/lustre/lustre/obdclass/kernelcom

[PATCH 05/13] staging: lustre: split kernel comm between user and kernel

2015-11-08 Thread James Simmons
Reviewed-by: James Simmons <uja.o...@yahoo.com> Reviewed-by: Dmitry Eremin <dmitry.ere...@intel.com> Reviewed-by: John L. Hammond <john.hamm...@intel.com> Reviewed-by: Oleg Drokin <oleg.dro...@intel.com> Signed-off-by: James Simmons <jsimm...@infradead.org> ---

  1   2   3   4   5   6   7   8   9   10   >