[PATCH 05/11] staging: lustre: convert ldlm extent locks to linux extent-tree

2018-06-06 Thread NeilBrown
-off-by: NeilBrown --- drivers/staging/lustre/lustre/include/lustre_dlm.h |9 ++- drivers/staging/lustre/lustre/ldlm/ldlm_extent.c | 61 drivers/staging/lustre/lustre/ldlm/ldlm_internal.h |4 + drivers/staging/lustre/lustre/ldlm/ldlm_lock.c | 11 ++-- drivers

[PATCH 01/11] staging: lustre: simplify use of interval-tree.

2018-06-06 Thread NeilBrown
. - the various functions for allocating an ldlm_interval and attaching to a lock or detaching from a lock are also gone. Signed-off-by: NeilBrown --- .../staging/lustre/lustre/include/interval_tree.h |4 + drivers/staging/lustre/lustre/include/lustre_dlm.h | 12 --- drivers/staging/lustre/lustre

[md PATCH 00/11] staging: More lustre cleanup - particularly interval-trees

2018-06-06 Thread NeilBrown
but noticed interval-tree and decided I should deal with that first. So I added the interval-tree clean-up. That set is more work to review, so I put it first. Comments welcome, Thanks, NeilBrown --- NeilBrown (11): staging: lustre: simplify use of interval-tree. staging: lustre

[PATCH 05/11] staging: lustre: convert ldlm extent locks to linux extent-tree

2018-06-06 Thread NeilBrown
-off-by: NeilBrown --- drivers/staging/lustre/lustre/include/lustre_dlm.h |9 ++- drivers/staging/lustre/lustre/ldlm/ldlm_extent.c | 61 drivers/staging/lustre/lustre/ldlm/ldlm_internal.h |4 + drivers/staging/lustre/lustre/ldlm/ldlm_lock.c | 11 ++-- drivers

[PATCH 02/11] staging: lustre: change lock_matches() to return bool.

2018-06-06 Thread NeilBrown
The name of the function lock_matches() sounds like it performs a test (it does) and so should return a bool. Returning a bool gives a slight code simplification (in search_queue) and more simplification in future patches. Signed-off-by: NeilBrown --- drivers/staging/lustre/lustre/ldlm

[PATCH 06/11] staging: lustre: remove interval_tree

2018-06-06 Thread NeilBrown
There are no remaining users for this library, so discard it. Signed-off-by: NeilBrown --- .../staging/lustre/lustre/include/interval_tree.h | 119 drivers/staging/lustre/lustre/ldlm/interval_tree.c | 590 drivers/staging/lustre/lustre/ptlrpc/Makefile |1

[PATCH 04/11] staging: lustre: convert range_lock to linux interval_trees.

2018-06-06 Thread NeilBrown
as we need 64bit endpoints and it only provides "unsigned long". Signed-off-by: NeilBrown --- drivers/staging/lustre/lustre/llite/file.c |8 +- drivers/staging/lustre/lustre/llite/range_lock.c | 94 -- drivers/staging/lustre/lustre/llite/range_lock.h |

[PATCH 03/11] staging: lustre: move interval_insert call from ldlm_lock to ldlm_extent

2018-06-06 Thread NeilBrown
Moving this call results in all interval-tree handling code being in the one file. This will simplify conversion to use Linux interval trees. The addition of 'struct cb' is a little ugly, but will be gone is a subsequent patch. Signed-off-by: NeilBrown --- drivers/staging/lustre/lustre/ldlm

[PATCH 04/11] staging: lustre: convert range_lock to linux interval_trees.

2018-06-06 Thread NeilBrown
as we need 64bit endpoints and it only provides "unsigned long". Signed-off-by: NeilBrown --- drivers/staging/lustre/lustre/llite/file.c |8 +- drivers/staging/lustre/lustre/llite/range_lock.c | 94 -- drivers/staging/lustre/lustre/llite/range_lock.h |

[PATCH 03/11] staging: lustre: move interval_insert call from ldlm_lock to ldlm_extent

2018-06-06 Thread NeilBrown
Moving this call results in all interval-tree handling code being in the one file. This will simplify conversion to use Linux interval trees. The addition of 'struct cb' is a little ugly, but will be gone is a subsequent patch. Signed-off-by: NeilBrown --- drivers/staging/lustre/lustre/ldlm

[PATCH 02/11] staging: lustre: change lock_matches() to return bool.

2018-06-06 Thread NeilBrown
The name of the function lock_matches() sounds like it performs a test (it does) and so should return a bool. Returning a bool gives a slight code simplification (in search_queue) and more simplification in future patches. Signed-off-by: NeilBrown --- drivers/staging/lustre/lustre/ldlm

[PATCH 06/11] staging: lustre: remove interval_tree

2018-06-06 Thread NeilBrown
There are no remaining users for this library, so discard it. Signed-off-by: NeilBrown --- .../staging/lustre/lustre/include/interval_tree.h | 119 drivers/staging/lustre/lustre/ldlm/interval_tree.c | 590 drivers/staging/lustre/lustre/ptlrpc/Makefile |1

Re: [PATCH v3 0/5] staging: mt7621-spi: Fix C Coding style issues.

2018-06-03 Thread NeilBrown
of spaces. > staging: mt7621-spi: Add a space before open paranthesis. > staging: mt7621-spi: Remove unnecessary braces {} from single > statement if block. > Thanks, All Reviewed-by: NeilBrown NeilBrown signature.asc Description: PGP signature

Re: [PATCH v3 0/5] staging: mt7621-spi: Fix C Coding style issues.

2018-06-03 Thread NeilBrown
of spaces. > staging: mt7621-spi: Add a space before open paranthesis. > staging: mt7621-spi: Remove unnecessary braces {} from single > statement if block. > Thanks, All Reviewed-by: NeilBrown NeilBrown signature.asc Description: PGP signature

Re: [PATCH 0/7] staging: mt7621-pci: Fix coding style issues

2018-06-03 Thread NeilBrown
inux-mediatek off the cc list. They are unlikely to be interested until the driver is ready to be moved out of drivers/staging. Thanks, NeilBrown > > Abdun Nihaal (7): > staging: mt7621-pci: Remove space after open parenthesis > staging: mt7621-pci: remove trailing whitespace >

Re: [PATCH 0/7] staging: mt7621-pci: Fix coding style issues

2018-06-03 Thread NeilBrown
inux-mediatek off the cc list. They are unlikely to be interested until the driver is ready to be moved out of drivers/staging. Thanks, NeilBrown > > Abdun Nihaal (7): > staging: mt7621-pci: Remove space after open parenthesis > staging: mt7621-pci: remove trailing whitespace >

Re: [PATCH v2 6/6] staging: lustre: mdc: use large xattr buffers for old servers

2018-05-31 Thread NeilBrown
test, you could arrange that OBD_OSC_VERSION(2, 10, 1, 0) evaluates to 0. As ocd_version is unsigned, the comparison will always be false, and the compiler will optimize the code away. As a general rule, you need a very good reason to have #if or #ifdef in .c files. They are usually OK in .h files. Thanks, NeilBrown signature.asc Description: PGP signature

Re: [PATCH v2 6/6] staging: lustre: mdc: use large xattr buffers for old servers

2018-05-31 Thread NeilBrown
test, you could arrange that OBD_OSC_VERSION(2, 10, 1, 0) evaluates to 0. As ocd_version is unsigned, the comparison will always be false, and the compiler will optimize the code away. As a general rule, you need a very good reason to have #if or #ifdef in .c files. They are usually OK in .h files. Thanks, NeilBrown signature.asc Description: PGP signature

Re: [PATCH] staging: mt7621-spi: Fix Coding style issues reported by checkpatch.pl.

2018-05-31 Thread NeilBrown
rule: everything inside brackets must be to the right of the opening bracket unless that opening bracket is at the end of a line. Any of these would be acceptable - my personal preference is the second one. Thanks, NeilBrown > struct mt7621_spi; > > @@ -104,7 +105,7 @@ static vo

Re: [PATCH] staging: mt7621-spi: Fix Coding style issues reported by checkpatch.pl.

2018-05-31 Thread NeilBrown
rule: everything inside brackets must be to the right of the opening bracket unless that opening bracket is at the end of a line. Any of these would be acceptable - my personal preference is the second one. Thanks, NeilBrown > struct mt7621_spi; > > @@ -104,7 +105,7 @@ static vo

Re: linux-next: Signed-off-by missing for commit in the nfs tree

2018-05-30 Thread NeilBrown
On Wed, May 30 2018, Trond Myklebust wrote: > Hi Stephen, > > Thanks for noticing and apologies for missing that. I'll take that > patch out until Neil can update it. > Thanks for noticing that Stephen, I've sent and updated version. Thanks, NeilBrown > Cheers > Trond

Re: linux-next: Signed-off-by missing for commit in the nfs tree

2018-05-30 Thread NeilBrown
On Wed, May 30 2018, Trond Myklebust wrote: > Hi Stephen, > > Thanks for noticing and apologies for missing that. I'll take that > patch out until Neil can update it. > Thanks for noticing that Stephen, I've sent and updated version. Thanks, NeilBrown > Cheers > Trond

[PATCH 1/4 v2] NFS: slight optimization for walking list for delegations

2018-05-30 Thread NeilBrown
to continue to look at the other delegation for the server as we will never be able to get an active reference. So instead of continuing in the inner loop, break out and continue in the outer loop. Signed-off-by: NeilBrown --- This time with a Signed-off-by - sorry. I took the opportunity to follow

[PATCH 1/4 v2] NFS: slight optimization for walking list for delegations

2018-05-30 Thread NeilBrown
to continue to look at the other delegation for the server as we will never be able to get an active reference. So instead of continuing in the inner loop, break out and continue in the outer loop. Signed-off-by: NeilBrown --- This time with a Signed-off-by - sorry. I took the opportunity to follow

Re: [PATCH] staging: lustre: include linux/highmem.h when needed

2018-05-30 Thread NeilBrown
y reduce the number of include files that were automatically included everywhere. Clearly some config combinations didn't get tested properly. Reviewed-by: NeilBrown Thanks, NeilBrown > --- > drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c | 1 + > 1 file changed, 1 insertio

Re: [PATCH] staging: lustre: include linux/highmem.h when needed

2018-05-30 Thread NeilBrown
y reduce the number of include files that were automatically included everywhere. Clearly some config combinations didn't get tested properly. Reviewed-by: NeilBrown Thanks, NeilBrown > --- > drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c | 1 + > 1 file changed, 1 insertio

Re: [PATCH v2] staging: mt7621-mmc: Fix line size exceeding 80 columns

2018-05-30 Thread NeilBrown
On Thu, May 31 2018, Sankalp Negi wrote: > This patch fixes checkpatch.pl warning and check: > WARNING: line over 80 characters > CHECK: Alignment should match open parenthesis > > Signed-off-by: Sankalp Negi Reviewed-by: NeilBrown Thanks, NeilBrown > --- > Chan

Re: [PATCH v2] staging: mt7621-mmc: Fix line size exceeding 80 columns

2018-05-30 Thread NeilBrown
On Thu, May 31 2018, Sankalp Negi wrote: > This patch fixes checkpatch.pl warning and check: > WARNING: line over 80 characters > CHECK: Alignment should match open parenthesis > > Signed-off-by: Sankalp Negi Reviewed-by: NeilBrown Thanks, NeilBrown > --- > Chan

Re: [PATCH v2 01/25] staging: lustre: libcfs: restore UMP handling

2018-05-29 Thread NeilBrown
.whamcloud.com/18916 Nor does this review. Thanks, NeilBrown > Reviewed-by: Olaf Weber > Reviewed-by: Doug Oucharek > Signed-off-by: James Simmons > --- > Changelog: > > v1) New patch to handle the disappearence of UMP support > > .../lustre/include/linux/libcfs/lib

Re: [PATCH v2 01/25] staging: lustre: libcfs: restore UMP handling

2018-05-29 Thread NeilBrown
.whamcloud.com/18916 Nor does this review. Thanks, NeilBrown > Reviewed-by: Olaf Weber > Reviewed-by: Doug Oucharek > Signed-off-by: James Simmons > --- > Changelog: > > v1) New patch to handle the disappearence of UMP support > > .../lustre/include/linux/libcfs/lib

Re: [PATCH] scripts/faddr2line: show the code context

2018-05-29 Thread NeilBrown
someone should probably find out exactly what sort of messages ADDR2LINE produces, and make sure they are all parsed correctly. (maybe that someone should be me, but not today). Thanks, NeilBrown > > Cc: Changbin Du > Acked-by: Josh Poimboeuf > Fixes: 6870c0165feaa

Re: [PATCH] scripts/faddr2line: show the code context

2018-05-29 Thread NeilBrown
someone should probably find out exactly what sort of messages ADDR2LINE produces, and make sure they are all parsed correctly. (maybe that someone should be me, but not today). Thanks, NeilBrown > > Cc: Changbin Du > Acked-by: Josh Poimboeuf > Fixes: 6870c0165feaa

Re: [PATCH] staging: mt7621-mmc: Fix line size exceeding 80 columns.

2018-05-29 Thread NeilBrown
r your new version are indented properly. Try to do more than just remove the warnings - try to make the code beautiful! Thanks, NeilBrown > { > int ret; > > -- > 2.11.0 signature.asc Description: PGP signature

Re: [PATCH] staging: mt7621-mmc: Fix line size exceeding 80 columns.

2018-05-29 Thread NeilBrown
r your new version are indented properly. Try to do more than just remove the warnings - try to make the code beautiful! Thanks, NeilBrown > { > int ret; > > -- > 2.11.0 signature.asc Description: PGP signature

Re: [lustre-devel] [PATCH 13/30] staging: lustre: replace libcfs_register_ioctl with a blocking notifier_chain

2018-05-22 Thread NeilBrown
On Mon, May 21 2018, Patrick Farrell wrote: > This, and the rest of the series, look good. Feel free to add a Reviewed-by. Thanks a lot! NeilBrown signature.asc Description: PGP signature

Re: [lustre-devel] [PATCH 13/30] staging: lustre: replace libcfs_register_ioctl with a blocking notifier_chain

2018-05-22 Thread NeilBrown
On Mon, May 21 2018, Patrick Farrell wrote: > This, and the rest of the series, look good. Feel free to add a Reviewed-by. Thanks a lot! NeilBrown signature.asc Description: PGP signature

[PATCH 07/30] staging: lustre: simplify capability dropping.

2018-05-20 Thread NeilBrown
, but gets the job done. Signed-off-by: NeilBrown <ne...@suse.com> --- .../staging/lustre/include/linux/libcfs/curproc.h | 10 -- drivers/staging/lustre/lustre/llite/file.c |8 +++- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/drivers/staging/lust

[PATCH 07/30] staging: lustre: simplify capability dropping.

2018-05-20 Thread NeilBrown
, but gets the job done. Signed-off-by: NeilBrown --- .../staging/lustre/include/linux/libcfs/curproc.h | 10 -- drivers/staging/lustre/lustre/llite/file.c |8 +++- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/drivers/staging/lustre/include/linux/libcfs/cu

[PATCH 26/30] staging: lustre: remove libcfs_all from ptlrpc

2018-05-20 Thread NeilBrown
Some files didn't need it at all, others just needed one or two includes. Signed-off-by: NeilBrown <ne...@suse.com> --- drivers/staging/lustre/lustre/ptlrpc/errno.c |1 - drivers/staging/lustre/lustre/ptlrpc/events.c |2 +- drivers/staging/lustre/lustre/ptlrpc/llog_cl

[PATCH 27/30] staging: lustre: remove libcfs_all.h from fid, fld, obdclass

2018-05-20 Thread NeilBrown
None of these files seem to nee libcfs_all.h Signed-off-by: NeilBrown <ne...@suse.com> --- drivers/staging/lustre/lustre/fid/fid_lib.c|1 - drivers/staging/lustre/lustre/fid/fid_request.c|1 - drivers/staging/lustre/lustre/fid/lproc_fid.c |1 - drivers/staging/

[PATCH 30/30] staging: lustre: remove libcfs_all.h

2018-05-20 Thread NeilBrown
In the remaining files that include libcfs_all.h, replace it with other include files as necessary, then remove libcfs_all.h Signed-off-by: NeilBrown <ne...@suse.com> --- .../lustre/include/linux/libcfs/libcfs_all.h | 88 drivers/staging/lustre/lnet/libcfs/d

[PATCH 26/30] staging: lustre: remove libcfs_all from ptlrpc

2018-05-20 Thread NeilBrown
Some files didn't need it at all, others just needed one or two includes. Signed-off-by: NeilBrown --- drivers/staging/lustre/lustre/ptlrpc/errno.c |1 - drivers/staging/lustre/lustre/ptlrpc/events.c |2 +- drivers/staging/lustre/lustre/ptlrpc/llog_client.c |2 -- drivers

[PATCH 27/30] staging: lustre: remove libcfs_all.h from fid, fld, obdclass

2018-05-20 Thread NeilBrown
None of these files seem to nee libcfs_all.h Signed-off-by: NeilBrown --- drivers/staging/lustre/lustre/fid/fid_lib.c|1 - drivers/staging/lustre/lustre/fid/fid_request.c|1 - drivers/staging/lustre/lustre/fid/lproc_fid.c |1 - drivers/staging/lustre/lustre/fld

[PATCH 30/30] staging: lustre: remove libcfs_all.h

2018-05-20 Thread NeilBrown
In the remaining files that include libcfs_all.h, replace it with other include files as necessary, then remove libcfs_all.h Signed-off-by: NeilBrown --- .../lustre/include/linux/libcfs/libcfs_all.h | 88 drivers/staging/lustre/lnet/libcfs/debug.c |5

[PATCH 24/30] staging: lustre: remove libcfs_all.h from lustre/include/*.h

2018-05-20 Thread NeilBrown
Instead of the catch-all libcfs_all.h, just include the files actually needed in different places. Signed-off-by: NeilBrown <ne...@suse.com> --- .../lustre/include/linux/libcfs/libcfs_crypto.h|3 +++ .../staging/lustre/lustre/include/lprocfs_status.h |2 +- drivers/staging/

[PATCH 24/30] staging: lustre: remove libcfs_all.h from lustre/include/*.h

2018-05-20 Thread NeilBrown
Instead of the catch-all libcfs_all.h, just include the files actually needed in different places. Signed-off-by: NeilBrown --- .../lustre/include/linux/libcfs/libcfs_crypto.h|3 +++ .../staging/lustre/lustre/include/lprocfs_status.h |2 +- drivers/staging/lustre/lustre/include

[PATCH 28/30] staging: lustre: remove remaining libcfs_all.h includes from lustre/lustre

2018-05-20 Thread NeilBrown
Most of these aren't needed, a few can be simplified. Signed-off-by: NeilBrown <ne...@suse.com> --- .../staging/lustre/lustre/include/lustre_intent.h |2 ++ drivers/staging/lustre/lustre/ldlm/l_lock.c|1 - drivers/staging/lustre/lustre/ldlm/ldlm_extent.c |1 - d

[PATCH 25/30] staging: lustre: remove libcfs_all.h from remaining .h files.

2018-05-20 Thread NeilBrown
Now no *.h files include libcfs_all.h - only *.c files. Signed-off-by: NeilBrown <ne...@suse.com> --- .../lustre/include/linux/libcfs/libcfs_hash.h |3 +++ drivers/staging/lustre/lustre/fid/fid_internal.h |1 - drivers/staging/lustre/lustre/fld/fld_internal.h |1 - d

[PATCH 23/30] staging: lustre: remove libcfs_all.h from includes lustre/lnet

2018-05-20 Thread NeilBrown
Some of these include files didn't need to include libcfs_all.h. A couple did so replace with just the base include files needed. Signed-off-by: NeilBrown <ne...@suse.com> --- drivers/staging/lustre/lnet/libcfs/tracefile.h |8 +++- drivers/staging/lustre/lnet/selftest/conrpc.h

[PATCH 29/30] staging: lustre: move all libcfs_all includes except in lustre/lnet/libcfs/

2018-05-20 Thread NeilBrown
Again, most of these are not needed. Signed-off-by: NeilBrown <ne...@suse.com> --- .../lustre/include/linux/libcfs/libcfs_string.h|2 ++ drivers/staging/lustre/lnet/lnet/lib-socket.c |1 - drivers/staging/lustre/lnet/lnet/nidstrings.c |5 - drivers/staging/

[PATCH 25/30] staging: lustre: remove libcfs_all.h from remaining .h files.

2018-05-20 Thread NeilBrown
Now no *.h files include libcfs_all.h - only *.c files. Signed-off-by: NeilBrown --- .../lustre/include/linux/libcfs/libcfs_hash.h |3 +++ drivers/staging/lustre/lustre/fid/fid_internal.h |1 - drivers/staging/lustre/lustre/fld/fld_internal.h |1 - drivers/staging/lustre

[PATCH 23/30] staging: lustre: remove libcfs_all.h from includes lustre/lnet

2018-05-20 Thread NeilBrown
Some of these include files didn't need to include libcfs_all.h. A couple did so replace with just the base include files needed. Signed-off-by: NeilBrown --- drivers/staging/lustre/lnet/libcfs/tracefile.h |8 +++- drivers/staging/lustre/lnet/selftest/conrpc.h |1 - drivers

[PATCH 29/30] staging: lustre: move all libcfs_all includes except in lustre/lnet/libcfs/

2018-05-20 Thread NeilBrown
Again, most of these are not needed. Signed-off-by: NeilBrown --- .../lustre/include/linux/libcfs/libcfs_string.h|2 ++ drivers/staging/lustre/lnet/lnet/lib-socket.c |1 - drivers/staging/lustre/lnet/lnet/nidstrings.c |5 - drivers/staging/lustre/lnet/lnet

[PATCH 28/30] staging: lustre: remove remaining libcfs_all.h includes from lustre/lustre

2018-05-20 Thread NeilBrown
Most of these aren't needed, a few can be simplified. Signed-off-by: NeilBrown --- .../staging/lustre/lustre/include/lustre_intent.h |2 ++ drivers/staging/lustre/lustre/ldlm/l_lock.c|1 - drivers/staging/lustre/lustre/ldlm/ldlm_extent.c |1 - drivers/staging/lustre

[PATCH 18/30] staging: lustre: replace memory_presure funcitons by standard interfaces.

2018-05-20 Thread NeilBrown
Use memalloc_noreclaim_save() and memalloc_noreclaim_restore(), and for testing, just directly test the flag in current->flags Signed-off-by: NeilBrown <ne...@suse.com> --- .../lustre/include/linux/libcfs/libcfs_prim.h | 31 .../staging/lustre/lnet/klnd

[PATCH 21/30] staging: lustre: don't include libcfs.h in lnet/lib-lnet.h

2018-05-20 Thread NeilBrown
We want to be more focused in what is included where. So we remove libcfs.h from where it isn't needed. Signed-off-by: NeilBrown <ne...@suse.com> --- .../lustre/include/linux/libcfs/libcfs_debug.h |1 + .../lustre/include/linux/libcfs/libcfs_fail.h |3 +++ .../staging/

[PATCH 19/30] staging: lustre: discard libcfs_prim.h

2018-05-20 Thread NeilBrown
This file no longer contains enough content to justify a separate file. So merge with libcfs.h. Signed-off-by: NeilBrown <ne...@suse.com> --- .../staging/lustre/include/linux/libcfs/libcfs.h | 12 - .../lustre/include/linux/libcfs/libcfs_prim.h | 51 2

[PATCH 18/30] staging: lustre: replace memory_presure funcitons by standard interfaces.

2018-05-20 Thread NeilBrown
Use memalloc_noreclaim_save() and memalloc_noreclaim_restore(), and for testing, just directly test the flag in current->flags Signed-off-by: NeilBrown --- .../lustre/include/linux/libcfs/libcfs_prim.h | 31 .../staging/lustre/lnet/klnds/socklnd/socklnd_cb.c |

[PATCH 21/30] staging: lustre: don't include libcfs.h in lnet/lib-lnet.h

2018-05-20 Thread NeilBrown
We want to be more focused in what is included where. So we remove libcfs.h from where it isn't needed. Signed-off-by: NeilBrown --- .../lustre/include/linux/libcfs/libcfs_debug.h |1 + .../lustre/include/linux/libcfs/libcfs_fail.h |3 +++ .../staging/lustre/include/linux/lnet

[PATCH 19/30] staging: lustre: discard libcfs_prim.h

2018-05-20 Thread NeilBrown
This file no longer contains enough content to justify a separate file. So merge with libcfs.h. Signed-off-by: NeilBrown --- .../staging/lustre/include/linux/libcfs/libcfs.h | 12 - .../lustre/include/linux/libcfs/libcfs_prim.h | 51 2 files changed, 11

[PATCH 16/30] staging: lustre: move lnet_debug_log_upcall declaration to tracefile.h

2018-05-20 Thread NeilBrown
Both files that use this variable include tracefile.h, and it seems a more suitable home for the declaration. Signed-off-by: NeilBrown <ne...@suse.com> --- .../staging/lustre/include/linux/libcfs/libcfs.h |5 - drivers/staging/lustre/lnet/libcfs/tracefile.h |5 + 2

[PATCH 22/30] staging: lustre: remove libcfs_all.h includes from lnet/klnd

2018-05-20 Thread NeilBrown
Other smaller include files are sufficient. Signed-off-by: NeilBrown <ne...@suse.com> --- .../staging/lustre/lnet/klnds/o2iblnd/o2iblnd.h|1 - .../staging/lustre/lnet/klnds/socklnd/socklnd.h|1 - .../lustre/lnet/klnds/socklnd/socklnd_lib.c|1 + 3 files chan

[PATCH 22/30] staging: lustre: remove libcfs_all.h includes from lnet/klnd

2018-05-20 Thread NeilBrown
Other smaller include files are sufficient. Signed-off-by: NeilBrown --- .../staging/lustre/lnet/klnds/o2iblnd/o2iblnd.h|1 - .../staging/lustre/lnet/klnds/socklnd/socklnd.h|1 - .../lustre/lnet/klnds/socklnd/socklnd_lib.c|1 + 3 files changed, 1 insertion(+), 2

[PATCH 16/30] staging: lustre: move lnet_debug_log_upcall declaration to tracefile.h

2018-05-20 Thread NeilBrown
Both files that use this variable include tracefile.h, and it seems a more suitable home for the declaration. Signed-off-by: NeilBrown --- .../staging/lustre/include/linux/libcfs/libcfs.h |5 - drivers/staging/lustre/lnet/libcfs/tracefile.h |5 + 2 files changed, 5

[PATCH 17/30] staging: lustre: move RESV_PORT definitions to lnet/lib-lnet.h

2018-05-20 Thread NeilBrown
These are network related on only used in lnet, so move to lib-lnet.h Signed-off-by: NeilBrown <ne...@suse.com> --- .../staging/lustre/include/linux/libcfs/libcfs.h |4 .../staging/lustre/include/linux/lnet/lib-lnet.h |4 2 files changed, 4 insertions(+), 4 del

[PATCH 15/30] staging: lustre: make lnet_debugfs_symlink_def local to libcfs/modules.c

2018-05-20 Thread NeilBrown
This type is only used in libcfs/module.c, so make it local to there. If any other module ever wanted to add its own symlinks, it would probably be easiest to export lnet_debugfs_root and just call debugfs_create_symlink as required. Signed-off-by: NeilBrown <ne...@suse.com> --- .../s

[PATCH 17/30] staging: lustre: move RESV_PORT definitions to lnet/lib-lnet.h

2018-05-20 Thread NeilBrown
These are network related on only used in lnet, so move to lib-lnet.h Signed-off-by: NeilBrown --- .../staging/lustre/include/linux/libcfs/libcfs.h |4 .../staging/lustre/include/linux/lnet/lib-lnet.h |4 2 files changed, 4 insertions(+), 4 deletions(-) diff --git

[PATCH 15/30] staging: lustre: make lnet_debugfs_symlink_def local to libcfs/modules.c

2018-05-20 Thread NeilBrown
This type is only used in libcfs/module.c, so make it local to there. If any other module ever wanted to add its own symlinks, it would probably be easiest to export lnet_debugfs_root and just call debugfs_create_symlink as required. Signed-off-by: NeilBrown --- .../staging/lustre/include/linux

[PATCH 20/30] staging: lustre: start moving includes out of libcfs.h

2018-05-20 Thread NeilBrown
every reference to libcfs.h to instead include libcfs_all.h Next several patches will remove that from various files in small batches Signed-off-by: NeilBrown <ne...@suse.com> --- .../staging/lustre/include/linux/libcfs/libcfs.h | 48 --- .../lustre/include/linux/libcfs/libcfs

[PATCH 20/30] staging: lustre: start moving includes out of libcfs.h

2018-05-20 Thread NeilBrown
every reference to libcfs.h to instead include libcfs_all.h Next several patches will remove that from various files in small batches Signed-off-by: NeilBrown --- .../staging/lustre/include/linux/libcfs/libcfs.h | 48 --- .../lustre/include/linux/libcfs/libcfs_all.h | 88

[PATCH 13/30] staging: lustre: replace libcfs_register_ioctl with a blocking notifier_chain

2018-05-20 Thread NeilBrown
to mean "continue". This requires a little bit of conversion. Signed-off-by: NeilBrown <ne...@suse.com> --- .../staging/lustre/include/linux/libcfs/libcfs.h | 19 ++ drivers/staging/lustre/lnet/libcfs/module.c| 64 drivers/staging/lustre/ln

[PATCH 14/30] staging: lustre: clean up __LIBCFS_H macro

2018-05-20 Thread NeilBrown
There is some confusion with names here - make it all uniform. Signed-off-by: NeilBrown <ne...@suse.com> --- .../staging/lustre/include/linux/libcfs/libcfs.h |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/lustre/include/linux/libcfs/libcf

[PATCH 14/30] staging: lustre: clean up __LIBCFS_H macro

2018-05-20 Thread NeilBrown
There is some confusion with names here - make it all uniform. Signed-off-by: NeilBrown --- .../staging/lustre/include/linux/libcfs/libcfs.h |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/lustre/include/linux/libcfs/libcfs.h b/drivers/staging/lustre

[PATCH 13/30] staging: lustre: replace libcfs_register_ioctl with a blocking notifier_chain

2018-05-20 Thread NeilBrown
to mean "continue". This requires a little bit of conversion. Signed-off-by: NeilBrown --- .../staging/lustre/include/linux/libcfs/libcfs.h | 19 ++ drivers/staging/lustre/lnet/libcfs/module.c| 64 drivers/staging/lustre/lnet/lnet/module.c

[PATCH 12/30] staging: lustre: discard cfs_block_sigsinv()

2018-05-20 Thread NeilBrown
with current->blocked is exactly what sigprocmask(SIG_BLOCK) does. Signed-off-by: NeilBrown <ne...@suse.com> --- .../staging/lustre/include/linux/libcfs/libcfs.h | 16 --- drivers/staging/lustre/lustre/include/lustre_lib.h | 21 +++- drivers/staging/lust

[PATCH 10/30] staging: lustre: discard CFS_TICK

2018-05-20 Thread NeilBrown
different purposes and of different durarions. So discard CFS_TICK and lets each use-site just use whatever number of jiffies seems appropriate in that case. Signed-off-by: NeilBrown <ne...@suse.com> --- .../staging/lustre/include/linux/libcfs/libcfs.h |5 - .../staging/lustre/ln

[PATCH 11/30] staging: lustre: move LERRCHKSUM() to libcfs_debug.h

2018-05-20 Thread NeilBrown
This macro is only used for debug messages, so use it to the debug code. Also improve the documentation slightly. Signed-off-by: NeilBrown <ne...@suse.com> --- .../staging/lustre/include/linux/libcfs/libcfs.h |7 --- .../lustre/include/linux/libcfs/libcfs_debug.h |7

[PATCH 12/30] staging: lustre: discard cfs_block_sigsinv()

2018-05-20 Thread NeilBrown
with current->blocked is exactly what sigprocmask(SIG_BLOCK) does. Signed-off-by: NeilBrown --- .../staging/lustre/include/linux/libcfs/libcfs.h | 16 --- drivers/staging/lustre/lustre/include/lustre_lib.h | 21 +++- drivers/staging/lustre/lustre/ll

[PATCH 10/30] staging: lustre: discard CFS_TICK

2018-05-20 Thread NeilBrown
different purposes and of different durarions. So discard CFS_TICK and lets each use-site just use whatever number of jiffies seems appropriate in that case. Signed-off-by: NeilBrown --- .../staging/lustre/include/linux/libcfs/libcfs.h |5 - .../staging/lustre/lnet/klnds/socklnd/socklnd.h

[PATCH 11/30] staging: lustre: move LERRCHKSUM() to libcfs_debug.h

2018-05-20 Thread NeilBrown
This macro is only used for debug messages, so use it to the debug code. Also improve the documentation slightly. Signed-off-by: NeilBrown --- .../staging/lustre/include/linux/libcfs/libcfs.h |7 --- .../lustre/include/linux/libcfs/libcfs_debug.h |7 +++ 2 files changed, 7

[PATCH 08/30] staging: lustre: discard cfs_cap_t, use kernel_cap_t

2018-05-20 Thread NeilBrown
replaces cfs_cap_t with kernel_cap_t throughout, and where a cfs_cap_t was previous stored in a __u32, we now store cap.cap[0] instead. With this, we can remove include/linux/libcfs/curproc.h Signed-off-by: NeilBrown <ne...@suse.com> --- .../staging/lustre/include/linux/libcfs/curproc.h

[PATCH 09/30] staging: lustre: discard LOWEST_BIT_SET()

2018-05-20 Thread NeilBrown
This macro is only used once to test if a value is a power of two. So use is_power_of_2() instead and discard the macro. Signed-off-by: NeilBrown <ne...@suse.com> --- .../staging/lustre/include/linux/libcfs/libcfs.h |2 -- drivers/staging/lustre/lnet/lnet/lib-eq.c |2

[PATCH 06/30] staging: lustre: remove current_pid() and current_comm()

2018-05-20 Thread NeilBrown
Just use current->pid and current->comm directly, instead of having wrappers. Signed-off-by: NeilBrown <ne...@suse.com> --- .../staging/lustre/include/linux/libcfs/curproc.h |4 drivers/staging/lustre/lnet/libcfs/debug.c |2 +- drivers/staging/lustre/lustre/ldlm

[PATCH 08/30] staging: lustre: discard cfs_cap_t, use kernel_cap_t

2018-05-20 Thread NeilBrown
replaces cfs_cap_t with kernel_cap_t throughout, and where a cfs_cap_t was previous stored in a __u32, we now store cap.cap[0] instead. With this, we can remove include/linux/libcfs/curproc.h Signed-off-by: NeilBrown --- .../staging/lustre/include/linux/libcfs/curproc.h | 69

[PATCH 09/30] staging: lustre: discard LOWEST_BIT_SET()

2018-05-20 Thread NeilBrown
This macro is only used once to test if a value is a power of two. So use is_power_of_2() instead and discard the macro. Signed-off-by: NeilBrown --- .../staging/lustre/include/linux/libcfs/libcfs.h |2 -- drivers/staging/lustre/lnet/lnet/lib-eq.c |2 +- 2 files changed, 1

[PATCH 06/30] staging: lustre: remove current_pid() and current_comm()

2018-05-20 Thread NeilBrown
Just use current->pid and current->comm directly, instead of having wrappers. Signed-off-by: NeilBrown --- .../staging/lustre/include/linux/libcfs/curproc.h |4 drivers/staging/lustre/lnet/libcfs/debug.c |2 +- drivers/staging/lustre/lustre/ldlm/ldlm_lock.c

[PATCH 03/30] staging: lustre: move files out of lustre/lnet/libcfs/linux/

2018-05-20 Thread NeilBrown
There is no longer any value in having this separate subdirectory, so promote the files in it. Also tidy the Makefile a little to use the common "*-obj-y" macro name. This will allow individual files to be conditionally compiled. Signed-off-by: NeilBrown <ne...@suse.com> ---

[PATCH 03/30] staging: lustre: move files out of lustre/lnet/libcfs/linux/

2018-05-20 Thread NeilBrown
There is no longer any value in having this separate subdirectory, so promote the files in it. Also tidy the Makefile a little to use the common "*-obj-y" macro name. This will allow individual files to be conditionally compiled. Signed-off-by: NeilBrown --- drivers/staging/lustre/l

[PATCH 05/30] staging: lustre: remove conditional compilation from libcfs_cpu.c

2018-05-20 Thread NeilBrown
that cfs_cpt_tab can sometimes be NULL, so we need to discard the assertion that it isn't. Signed-off-by: NeilBrown <ne...@suse.com> --- .../lustre/include/linux/libcfs/libcfs_cpu.h | 35 ++- drivers/staging/lustre/lnet/libcfs/Makefile|2 - drivers/staging/lustr

[PATCH 00/30] staging: lustre: tidy up - module init and includes

2018-05-20 Thread NeilBrown
. Thanks, NeilBrown --- NeilBrown (30): staging: lustre: osc: tidy up osc_init() staging: lustre: refactor libcfs initialization. staging: lustre: move files out of lustre/lnet/libcfs/linux/ staging: lustre: rename cfs_cpt_table to cfs_cpt_tab staging: lustre: remove

[PATCH 05/30] staging: lustre: remove conditional compilation from libcfs_cpu.c

2018-05-20 Thread NeilBrown
that cfs_cpt_tab can sometimes be NULL, so we need to discard the assertion that it isn't. Signed-off-by: NeilBrown --- .../lustre/include/linux/libcfs/libcfs_cpu.h | 35 ++- drivers/staging/lustre/lnet/libcfs/Makefile|2 - drivers/staging/lustre/lnet/libcfs/li

[PATCH 00/30] staging: lustre: tidy up - module init and includes

2018-05-20 Thread NeilBrown
. Thanks, NeilBrown --- NeilBrown (30): staging: lustre: osc: tidy up osc_init() staging: lustre: refactor libcfs initialization. staging: lustre: move files out of lustre/lnet/libcfs/linux/ staging: lustre: rename cfs_cpt_table to cfs_cpt_tab staging: lustre: remove

[PATCH 04/30] staging: lustre: rename cfs_cpt_table to cfs_cpt_tab

2018-05-20 Thread NeilBrown
The variable "cfs_cpt_table" has the same name as the structure "struct cfs_cpt_table". This makes it hard to use #define to make one disappear on a uni-processor build, but keep the other. So rename the variable to cfs_cpt_tab. Signed-off-by: NeilBrown <ne...@suse.com&g

[PATCH 02/30] staging: lustre: refactor libcfs initialization.

2018-05-20 Thread NeilBrown
dependencies when they are activated rather than when they are loaded. Achieving that is a much larger job that would have to progress in stages. For now, this change ensures that if some initialization in libcfs fails, other modules will fail-safe. Signed-off-by: NeilBrown <ne...@suse.

[PATCH 01/30] staging: lustre: osc: tidy up osc_init()

2018-05-20 Thread NeilBrown
-by: NeilBrown <ne...@suse.com> --- drivers/staging/lustre/lustre/osc/osc_request.c | 29 +-- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/drivers/staging/lustre/lustre/osc/osc_request.c b/drivers/staging/lustre/lustre/osc/osc_request.c index 0038e555e905..0b5245

[PATCH 04/30] staging: lustre: rename cfs_cpt_table to cfs_cpt_tab

2018-05-20 Thread NeilBrown
The variable "cfs_cpt_table" has the same name as the structure "struct cfs_cpt_table". This makes it hard to use #define to make one disappear on a uni-processor build, but keep the other. So rename the variable to cfs_cpt_tab. Signed-off-by: NeilBrown --- .../lustre/

[PATCH 02/30] staging: lustre: refactor libcfs initialization.

2018-05-20 Thread NeilBrown
dependencies when they are activated rather than when they are loaded. Achieving that is a much larger job that would have to progress in stages. For now, this change ensures that if some initialization in libcfs fails, other modules will fail-safe. Signed-off-by: NeilBrown --- .../staging

[PATCH 01/30] staging: lustre: osc: tidy up osc_init()

2018-05-20 Thread NeilBrown
-by: NeilBrown --- drivers/staging/lustre/lustre/osc/osc_request.c | 29 +-- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/drivers/staging/lustre/lustre/osc/osc_request.c b/drivers/staging/lustre/lustre/osc/osc_request.c index 0038e555e905..0b5245741e42 100644

Re: [PATCH 00/13] convert block layer to bioset_init()/mempool_init()

2018-05-20 Thread NeilBrown
to bioset_init()/mempool_init() > bcache: convert to bioset_init()/mempool_init() > md: convert to bioset_init()/mempool_init() Hi Kent, this conversion looks really good, thanks for Ccing me on it. However as Shaohua Li is now the maintainer of md, it probably should have gone to

Re: [PATCH 00/13] convert block layer to bioset_init()/mempool_init()

2018-05-20 Thread NeilBrown
to bioset_init()/mempool_init() > bcache: convert to bioset_init()/mempool_init() > md: convert to bioset_init()/mempool_init() Hi Kent, this conversion looks really good, thanks for Ccing me on it. However as Shaohua Li is now the maintainer of md, it probably should have gone to

<    2   3   4   5   6   7   8   9   10   11   >