Skip to content

Lustre IO stack simplifications and cleanups

[email protected] lkml lustre-devel 2 versions New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest46 patches 0 repliesNew
  2. v143 patches 1 replySuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/46staging/lustre/obdclass: limit lu_site hash table sizedrivers/staging/lustre/lustre/obdclass/lu_object.c+1 -10 replies
2/46staging/lustre: Get rid of CFS_PAGE_MASKdrivers/staging/lustre/include/linux/libcfs/linux/linux-mem.h drivers/staging/lustre/lnet/libcfs/linux/linux-crypto.c drivers/staging/lustre/lnet/selftest/brw_test.c +10 more+32 -330 replies
3/46staging/lustre: merge lclient/*.c into llite/drivers/staging/lustre/lustre/lclient/glimpse.c drivers/staging/lustre/lustre/lclient/lcommon_cl.c drivers/staging/lustre/lustre/lclient/lcommon_misc.c +4 more+1683 -16740 replies
4/46staging/lustre: Reintroduce global env listdrivers/staging/lustre/lustre/include/cl_object.h drivers/staging/lustre/lustre/llite/lcommon_misc.c drivers/staging/lustre/lustre/llite/llite_lib.c +2 more+92 -60 replies
5/46staging/lustre/osc: Adjustment on osc LRU for performancedrivers/staging/lustre/lustre/llite/llite_lib.c drivers/staging/lustre/lustre/osc/lproc_osc.c drivers/staging/lustre/lustre/osc/osc_cache.c +5 more+235 -1570 replies
6/46staging/lustre/osc: to drop LRU pages with cl_lru_workdrivers/staging/lustre/lustre/include/obd.h drivers/staging/lustre/lustre/llite/lproc_llite.c drivers/staging/lustre/lustre/osc/lproc_osc.c +5 more+85 -250 replies
7/46staging/lustre/clio: collapse layer of cl_pagedrivers/staging/lustre/lustre/include/cl_object.h drivers/staging/lustre/lustre/llite/rw.c drivers/staging/lustre/lustre/llite/rw26.c +16 more+394 -6040 replies
8/46staging/lustre/obdclass: Add a preallocated percpu cl_envdrivers/staging/lustre/lustre/include/cl_object.h drivers/staging/lustre/lustre/llite/rw26.c drivers/staging/lustre/lustre/obdclass/cl_lock.c +2 more+152 -230 replies
9/46staging/lustre/clio: add pages into writeback cache in batchesdrivers/staging/lustre/lustre/include/cl_object.h drivers/staging/lustre/lustre/include/lclient.h drivers/staging/lustre/lustre/llite/file.c +17 more+792 -8960 replies
10/46staging/lustre/osc: add weight function for DLM lockdrivers/staging/lustre/lustre/ldlm/ldlm_request.c drivers/staging/lustre/lustre/osc/osc_cl_internal.h drivers/staging/lustre/lustre/osc/osc_internal.h +3 more+89 -1390 replies
11/46staging/lustre/clio: remove stackable cl_page completelydrivers/staging/lustre/lustre/include/cl_object.h drivers/staging/lustre/lustre/include/lclient.h drivers/staging/lustre/lustre/llite/lcommon_cl.c +19 more+257 -5280 replies
12/46staging/lustre/clio: optimize read ahead codedrivers/staging/lustre/lustre/include/cl_object.h drivers/staging/lustre/lustre/include/lclient.h drivers/staging/lustre/lustre/llite/lcommon_cl.c +15 more+208 -1230 replies
13/46staging/lustre/llite: remove lli_lvbdrivers/staging/lustre/lustre/llite/file.c drivers/staging/lustre/lustre/llite/glimpse.c drivers/staging/lustre/lustre/llite/lcommon_cl.c +3 more+48 -440 replies
14/46staging/lustre/lmv: remove lmv_init_{lock,unlock}()drivers/staging/lustre/lustre/include/obd.h drivers/staging/lustre/lustre/lmv/lmv_internal.h drivers/staging/lustre/lustre/lmv/lmv_obd.c+13 -160 replies
15/46staging/lustre/obd: remove struct client_obd_lockdrivers/staging/lustre/lustre/fld/fld_request.c drivers/staging/lustre/lustre/include/linux/obd.h drivers/staging/lustre/lustre/include/obd.h +8 more+105 -1750 replies
16/46staging/lustre/llite: remove some cl wrappersdrivers/staging/lustre/lustre/llite/dir.c drivers/staging/lustre/lustre/llite/file.c drivers/staging/lustre/lustre/llite/glimpse.c +4 more+35 -680 replies
17/46staging/lustre: Remove struct ll_iattrdrivers/staging/lustre/lustre/include/linux/obd.h drivers/staging/lustre/lustre/include/obd.h drivers/staging/lustre/lustre/llite/file.c +3 more+6 -660 replies
18/46staging/lustre/clio: generalize cl_sync_iodrivers/staging/lustre/lustre/include/cl_object.h drivers/staging/lustre/lustre/obdclass/cl_io.c drivers/staging/lustre/lustre/obdclass/cl_page.c+44 -450 replies
19/46staging/lustre/clio: cl_lock simplificationdrivers/staging/lustre/lustre/include/cl_object.h drivers/staging/lustre/lustre/include/lclient.h drivers/staging/lustre/lustre/include/lustre/lustre_idl.h +30 more+1203 -55600 replies
20/46staging/lustre: update comments after cl_lock simplificationdrivers/staging/lustre/lustre/include/cl_object.h drivers/staging/lustre/lustre/lov/lov_cl_internal.h+19 -1240 replies
21/46staging/lustre/llite: clip page correctly for vvp_io_commit_syncdrivers/staging/lustre/lustre/llite/vvp_io.c+7 -50 replies
22/46staging/lustre/llite: deadlock for page writedrivers/staging/lustre/lustre/llite/rw26.c+2 -20 replies
23/46staging/lustre/llite: make sure we do cl_page_clip on the last pagedrivers/staging/lustre/lustre/llite/vvp_io.c+7 -50 replies
24/46staging/lustre/llite: merge lclient.h into llite/vvp_internal.hdrivers/staging/lustre/lustre/include/cl_object.h drivers/staging/lustre/lustre/include/lclient.h drivers/staging/lustre/lustre/llite/glimpse.c +9 more+408 -4170 replies
25/46staging/lustre/llite: rename ccc_device to vvp_devicedrivers/staging/lustre/lustre/include/cl_object.h drivers/staging/lustre/lustre/llite/lcommon_cl.c drivers/staging/lustre/lustre/llite/llite_internal.h +2 more+102 -1280 replies
26/46staging/lustre/llite: rename ccc_object to vvp_objectdrivers/staging/lustre/lustre/include/cl_object.h drivers/staging/lustre/lustre/llite/glimpse.c drivers/staging/lustre/lustre/llite/lcommon_cl.c +12 more+231 -2710 replies
27/46staging/lustre/llite: rename ccc_page to vvp_pagedrivers/staging/lustre/lustre/include/cl_object.h drivers/staging/lustre/lustre/llite/lcommon_cl.c drivers/staging/lustre/lustre/llite/llite_close.c +8 more+131 -1320 replies
28/46staging/lustre/llite: rename ccc_lock to vvp_lockdrivers/staging/lustre/lustre/include/cl_object.h drivers/staging/lustre/lustre/llite/lcommon_cl.c drivers/staging/lustre/lustre/llite/vvp_dev.c +2 more+50 -720 replies
29/46staging/lustre:llite: remove struct ll_ra_readdrivers/staging/lustre/lustre/llite/llite_internal.h drivers/staging/lustre/lustre/llite/rw.c drivers/staging/lustre/lustre/llite/vvp_io.c+28 -860 replies
30/46staging/lustre/llite: merge ccc_io and vvp_iodrivers/staging/lustre/lustre/include/cl_object.h drivers/staging/lustre/lustre/llite/file.c drivers/staging/lustre/lustre/llite/lcommon_cl.c +8 more+144 -2150 replies
31/46staging/lustre/llite: use vui prefix for struct vvp_io membersdrivers/staging/lustre/lustre/llite/file.c drivers/staging/lustre/lustre/llite/lcommon_cl.c drivers/staging/lustre/lustre/llite/llite_mmap.c +5 more+139 -1380 replies
32/46staging/lustre/llite: move vvp_io functions to vvp_io.cdrivers/staging/lustre/lustre/llite/lcommon_cl.c drivers/staging/lustre/lustre/llite/llite_internal.h drivers/staging/lustre/lustre/llite/vvp_internal.h +1 more+196 -2220 replies
33/46staging/lustre/llite: rename ccc_req to vvp_reqdrivers/staging/lustre/lustre/include/cl_object.h drivers/staging/lustre/lustre/llite/Makefile drivers/staging/lustre/lustre/llite/lcommon_cl.c +3 more+136 -1200 replies
34/46staging/lustre/llite: Rename struct ccc_grouplock to ll_grouplockdrivers/staging/lustre/lustre/llite/file.c drivers/staging/lustre/lustre/llite/lcommon_misc.c drivers/staging/lustre/lustre/llite/llite_internal.h +2 more+35 -340 replies
35/46staging/lustre/llite: Rename struct vvp_thread_info to ll_thread_infodrivers/staging/lustre/lustre/llite/file.c drivers/staging/lustre/lustre/llite/llite_internal.h drivers/staging/lustre/lustre/llite/rw.c +1 more+40 -400 replies
36/46staging/lustre/llite: rename struct ccc_thread_info to vvp_thread_infodrivers/staging/lustre/lustre/llite/file.c drivers/staging/lustre/lustre/llite/glimpse.c drivers/staging/lustre/lustre/llite/lcommon_cl.c +7 more+68 -800 replies
37/46staging/lustre/llite: Remove ccc_global_{init,fini}()drivers/staging/lustre/lustre/llite/lcommon_cl.c drivers/staging/lustre/lustre/llite/llite_internal.h drivers/staging/lustre/lustre/llite/super25.c +2 more+46 -570 replies
38/46staging/lustre/llite: Move ll_dirent_type_get and make it staticdrivers/staging/lustre/lustre/llite/dir.c drivers/staging/lustre/lustre/llite/lcommon_cl.c drivers/staging/lustre/lustre/llite/vvp_internal.h+22 -230 replies
39/46staging/lustre/llite: Move several declarations to llite_internal.hdrivers/staging/lustre/lustre/llite/llite_internal.h drivers/staging/lustre/lustre/llite/vvp_internal.h+32 -360 replies
40/46staging/lustre/llite: Remove unused vui_local_lock fielddrivers/staging/lustre/lustre/llite/vvp_internal.h drivers/staging/lustre/lustre/llite/vvp_io.c+0 -150 replies
41/46staging/lustre/ldlm: ELC picks locks in a safer policydrivers/staging/lustre/lustre/include/lustre_dlm.h drivers/staging/lustre/lustre/ldlm/ldlm_request.c drivers/staging/lustre/lustre/mdc/mdc_request.c +2 more+39 -290 replies
42/46staging/lustre/ldlm: revert changes to ldlm_cancel_aged_policy()drivers/staging/lustre/lustre/ldlm/ldlm_request.c+2 -40 replies
43/46staging/lustre/ldlm: restore the ELC for enqueuedrivers/staging/lustre/lustre/ldlm/ldlm_internal.h drivers/staging/lustre/lustre/ldlm/ldlm_request.c drivers/staging/lustre/lustre/osc/osc_request.c+27 -90 replies
44/46staging/lustre: Fix spacing style before open parenthesisdrivers/staging/lustre/lustre/include/lu_object.h drivers/staging/lustre/lustre/include/lustre/lustre_idl.h drivers/staging/lustre/lustre/include/lustre/lustre_user.h +6 more+85 -850 replies
45/46staging/lustre/ldlm: Solve a race for LRU lock canceldrivers/staging/lustre/lustre/ldlm/ldlm_internal.h drivers/staging/lustre/lustre/ldlm/ldlm_lock.c drivers/staging/lustre/lustre/ldlm/ldlm_request.c+24 -60 replies
46/46staging/lustre: lov_io_init() should return error codedrivers/staging/lustre/lustre/llite/llite_mmap.c drivers/staging/lustre/lustre/lov/lov_io.c drivers/staging/lustre/lustre/obdclass/cl_io.c+7 -20 replies

Reviews trailers per patch

39 of 46 patches have a Reviewed-by or Acked-by.

PatchFan YongAlex ZhuravlevNiu YaweiLai SiyaoBobi JamAndreas DilgerBob GlossmanJames SimmonsDmitry EreminJohn L. HammondJinshan XiongwangdiIan CostelloLi Xi
1/46R-b R-b
2/46
3/46
4/46R-b R-b
5/46R-b R-b
6/46R-b R-b
7/46R-b R-b
8/46R-b R-b
9/46R-b R-b
10/46R-b R-b
11/46R-b R-b
12/46R-b
13/46R-b R-b
14/46R-b R-b R-b
15/46
16/46R-b R-b
17/46
18/46R-b R-b
19/46R-b
20/46R-b R-b
21/46R-b R-b
22/46R-b
23/46R-b R-b R-b R-b
24/46R-b R-b
25/46R-b R-b
26/46R-b R-b
27/46R-b R-b
28/46R-b R-b
29/46R-b R-b R-b
30/46R-b R-b
31/46R-b R-b R-b
32/46R-b R-b
33/46R-b R-b
34/46R-b R-b
35/46R-b R-b
36/46R-b R-b
37/46R-b R-b
38/46
39/46R-b R-b
40/46
41/46R-b R-b
42/46R-b R-b R-b
43/46R-b R-b R-b
44/46
45/46R-b
46/46R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 14 reviewers.

Read the v2 thread

Cover letter [PATCH v2 00/46] Lustre IO stack simplifications and cleanups

From: Oleg Drokin <[email protected]>

v2 due to a compile error that was accidentally introduced in one of the patches. Also added a few more fixes and cleanups as three additional patches at the end of the series.

This large body of patches mostly deals with Lustre IO stack simplifications and related cleanups.
In particular the whole cl_page and cl_lock stuff is reduced to basically nothing.
The simplifications remove about 5K lines of code and the other 5k are mostly due to shuffling code around and renaming stuff to get rid of now defunct layers.

Bobi Jam (2):
staging/lustre: update comments after cl_lock simplification staging/lustre: lov_io_init() should return error code

Jinshan Xiong (14):
staging/lustre: Reintroduce global env list staging/lustre/osc: Adjustment on osc LRU for performance staging/lustre/osc: to drop LRU pages with cl_lru_work staging/lustre/clio: collapse layer of cl_page staging/lustre/obdclass: Add a preallocated percpu cl_env staging/lustre/clio: add pages into writeback cache in batches staging/lustre/osc: add weight function for DLM lock staging/lustre/clio: remove stackable cl_page completely staging/lustre/clio: optimize read ahead code staging/lustre/clio: generalize cl_sync_io staging/lustre/clio: cl_lock simplification staging/lustre/llite: clip page correctly for vvp_io_commit_sync staging/lustre/llite: deadlock for page write staging/lustre/ldlm: ELC picks locks in a safer policy

John Hammond (5):
staging/lustre/llite: Rename struct ccc_grouplock to ll_grouplock staging/lustre/llite: Rename struct vvp_thread_info to ll_thread_info staging/lustre/llite: rename struct ccc_thread_info to vvp_thread_info staging/lustre/llite: Remove ccc_global_{init,fini}() staging/lustre/llite: Move several declarations to llite_internal.h

John L. Hammond (15):
staging/lustre: merge lclient/*.c into llite/ staging/lustre/llite: remove lli_lvb staging/lustre/lmv: remove lmv_init_{lock,unlock}() staging/lustre/obd: remove struct client_obd_lock staging/lustre/llite: remove some cl wrappers staging/lustre/llite: merge lclient.h into llite/vvp_internal.h staging/lustre/llite: rename ccc_device to vvp_device staging/lustre/llite: rename ccc_object to vvp_object staging/lustre/llite: rename ccc_page to vvp_page staging/lustre/llite: rename ccc_lock to vvp_lock staging/lustre:llite: remove struct ll_ra_read staging/lustre/llite: merge ccc_io and vvp_io staging/lustre/llite: use vui prefix for struct vvp_io members staging/lustre/llite: move vvp_io functions to vvp_io.c staging/lustre/llite: rename ccc_req to vvp_req

Li Dongyang (1):
staging/lustre/llite: make sure we do cl_page_clip on the last page

Niu Yawei (1):
staging/lustre/ldlm: revert changes to ldlm_cancel_aged_policy()

Oleg Drokin (6):
staging/lustre/obdclass: limit lu_site hash table size staging/lustre: Get rid of CFS_PAGE_MASK staging/lustre: Remove struct ll_iattr staging/lustre/llite: Move ll_dirent_type_get and make it static staging/lustre/llite: Remove unused vui_local_lock field staging/lustre: Fix spacing style before open parenthesis

Vitaly Fertman (2):
staging/lustre/ldlm: restore the ELC for enqueue staging/lustre/ldlm: Solve a race for LRU lock cancel

 .../lustre/include/linux/libcfs/linux/linux-mem.h  |    1 -
 .../lustre/lnet/libcfs/linux/linux-crypto.c        |    2 +-
 drivers/staging/lustre/lnet/selftest/brw_test.c    |    2 +-
 drivers/staging/lustre/lustre/fld/fld_request.c    |   14 +-
 drivers/staging/lustre/lustre/include/cl_object.h  |  962 ++-------
 drivers/staging/lustre/lustre/include/lclient.h    |  408 ----
 drivers/staging/lustre/lustre/include/linux/obd.h  |  125 --
 drivers/staging/lustre/lustre/include/lu_object.h  |   64 +-
 .../lustre/lustre/include/lustre/lustre_idl.h      |    4 +-
 .../lustre/lustre/include/lustre/lustre_user.h     |   36 +-
 drivers/staging/lustre/lustre/include/lustre_cfg.h |    2 +-
 drivers/staging/lustre/lustre/include/lustre_dlm.h |   14 +-
 .../staging/lustre/lustre/include/lustre_import.h  |    2 +-
 drivers/staging/lustre/lustre/include/lustre_lib.h |   36 +-
 drivers/staging/lustre/lustre/include/obd.h        |   14 +-
 drivers/staging/lustre/lustre/lclient/glimpse.c    |  270 ---
 drivers/staging/lustre/lustre/lclient/lcommon_cl.c | 1203 -----------
 .../staging/lustre/lustre/lclient/lcommon_misc.c   |  200 --
 drivers/staging/lustre/lustre/ldlm/ldlm_internal.h |   10 +-
 drivers/staging/lustre/lustre/ldlm/ldlm_lib.c      |    5 +-
 drivers/staging/lustre/lustre/ldlm/ldlm_lock.c     |   19 +-
 drivers/staging/lustre/lustre/ldlm/ldlm_request.c  |   85 +-
 drivers/staging/lustre/lustre/ldlm/ldlm_resource.c |    1 +
 drivers/staging/lustre/lustre/llite/Makefile       |    5 +-
 drivers/staging/lustre/lustre/llite/dir.c          |   24 +-
 drivers/staging/lustre/lustre/llite/file.c         |  133 +-
 drivers/staging/lustre/lustre/llite/glimpse.c      |  255 +++
 drivers/staging/lustre/lustre/llite/lcommon_cl.c   |  327 +++
 drivers/staging/lustre/lustre/llite/lcommon_misc.c |  201 ++
 drivers/staging/lustre/lustre/llite/llite_close.c  |   28 +-
 .../staging/lustre/lustre/llite/llite_internal.h   |  244 +--
 drivers/staging/lustre/lustre/llite/llite_lib.c    |   21 +-
 drivers/staging/lustre/lustre/llite/llite_mmap.c   |   42 +-
 drivers/staging/lustre/lustre/llite/lproc_llite.c  |   10 +-
 drivers/staging/lustre/lustre/llite/rw.c           |  363 ++--
 drivers/staging/lustre/lustre/llite/rw26.c         |  304 ++-
 drivers/staging/lustre/lustre/llite/super25.c      |   14 +-
 drivers/staging/lustre/lustre/llite/vvp_dev.c      |  254 ++-
 drivers/staging/lustre/lustre/llite/vvp_internal.h |  332 ++-
 drivers/staging/lustre/lustre/llite/vvp_io.c       |  925 +++++----
 drivers/staging/lustre/lustre/llite/vvp_lock.c     |   53 +-
 drivers/staging/lustre/lustre/llite/vvp_object.c   |  141 +-
 drivers/staging/lustre/lustre/llite/vvp_page.c     |  209 +-
 drivers/staging/lustre/lustre/llite/vvp_req.c      |  121 ++
 drivers/staging/lustre/lustre/lmv/lmv_internal.h   |    3 -
 drivers/staging/lustre/lustre/lmv/lmv_obd.c        |   26 +-
 .../staging/lustre/lustre/lov/lov_cl_internal.h    |  105 +-
 drivers/staging/lustre/lustre/lov/lov_dev.c        |    5 +-
 drivers/staging/lustre/lustre/lov/lov_internal.h   |    2 +
 drivers/staging/lustre/lustre/lov/lov_io.c         |  233 +--
 drivers/staging/lustre/lustre/lov/lov_lock.c       |  996 +--------
 drivers/staging/lustre/lustre/lov/lov_obd.c        |    1 -
 drivers/staging/lustre/lustre/lov/lov_object.c     |   48 +-
 drivers/staging/lustre/lustre/lov/lov_offset.c     |   13 +
 drivers/staging/lustre/lustre/lov/lov_page.c       |  183 +-
 drivers/staging/lustre/lustre/lov/lovsub_lock.c    |  383 ----
 drivers/staging/lustre/lustre/lov/lovsub_page.c    |    4 +-
 drivers/staging/lustre/lustre/mdc/lproc_mdc.c      |    8 +-
 drivers/staging/lustre/lustre/mdc/mdc_lib.c        |   21 +-
 drivers/staging/lustre/lustre/mdc/mdc_request.c    |    4 +-
 drivers/staging/lustre/lustre/obdclass/cl_io.c     |  417 ++--
 drivers/staging/lustre/lustre/obdclass/cl_lock.c   | 2152 +-------------------
 drivers/staging/lustre/lustre/obdclass/cl_object.c |  294 ++-
 drivers/staging/lustre/lustre/obdclass/cl_page.c   |  654 +-----
 drivers/staging/lustre/lustre/obdclass/class_obd.c |    2 +-
 drivers/staging/lustre/lustre/obdclass/debug.c     |    4 +-
 drivers/staging/lustre/lustre/obdclass/lu_object.c |    4 +-
 drivers/staging/lustre/lustre/obdclass/obdo.c      |    3 +-
 .../staging/lustre/lustre/obdecho/echo_client.c    |  115 +-
 drivers/staging/lustre/lustre/osc/lproc_osc.c      |   50 +-
 drivers/staging/lustre/lustre/osc/osc_cache.c      |  378 +++-
 .../staging/lustre/lustre/osc/osc_cl_internal.h    |  159 +-
 drivers/staging/lustre/lustre/osc/osc_internal.h   |   23 +-
 drivers/staging/lustre/lustre/osc/osc_io.c         |  279 +--
 drivers/staging/lustre/lustre/osc/osc_lock.c       | 1693 ++++++---------
 drivers/staging/lustre/lustre/osc/osc_object.c     |   35 +-
 drivers/staging/lustre/lustre/osc/osc_page.c       |  513 +++--
 drivers/staging/lustre/lustre/osc/osc_request.c    |  378 ++--
 drivers/staging/lustre/lustre/ptlrpc/ptlrpcd.c     |   16 +-
 drivers/staging/lustre/lustre/ptlrpc/sec_bulk.c    |    2 +-
 drivers/staging/lustre/lustre/ptlrpc/sec_plain.c   |    2 +-
 81 files changed, 5827 insertions(+), 10866 deletions(-)
 delete mode 100644 drivers/staging/lustre/lustre/include/lclient.h
 delete mode 100644 drivers/staging/lustre/lustre/include/linux/obd.h
 delete mode 100644 drivers/staging/lustre/lustre/lclient/glimpse.c
 delete mode 100644 drivers/staging/lustre/lustre/lclient/lcommon_cl.c
 delete mode 100644 drivers/staging/lustre/lustre/lclient/lcommon_misc.c
 create mode 100644 drivers/staging/lustre/lustre/llite/glimpse.c
 create mode 100644 drivers/staging/lustre/lustre/llite/lcommon_cl.c
 create mode 100644 drivers/staging/lustre/lustre/llite/lcommon_misc.c
 create mode 100644 drivers/staging/lustre/lustre/llite/vvp_req.c
Signature · 1 line
2.1.0