Skip to content
Snippets Groups Projects
  1. Sep 10, 2018
  2. Sep 04, 2018
  3. Jul 30, 2018
  4. Jul 18, 2018
    • James Simmons's avatar
      LU-8066 osc: fix idle_timeout handling · 406cd8a7
      James Simmons authored
      
      The patch that landed for LU-7236 introduced new sysfs entries
      which were done wrong.
      
      1) For idle_timeout it returns -ERANGE for
         any value passed in expect setting idle_timeout to zero. This
         does not match what the commit message said for LU-7236. So
         I changed lprocfs_str_with_units_to_s64() into kstrtouint()
         since a signed 64 bit timeout is not needed. Using kstrtouint()
         ensures that negative values are not possible and also cap the
         value to CONNECTION_SWITCH_MAX since the max of 4 billion
         seconds is over kill.
      
      2) For the next procfs idle_connect it is really a write only file
         but it was treated as both read and write. There is no need for
         the osc_idle_connect_seq_show() function.
      
      3) Lastly no more stuffing new entries into proc or debugfs. For
         this patch convert these new proc entries to sysfs. It seems
         to be a common occurrence so add LPROC_SEQ_* to spelling.txt
         so checkpatch will complain about using LPROC_SEQ_* which will
         go away.
      
      Change-Id: I1c992b2db47aade6a887919824d869e8d5354c71
      Signed-off-by: default avatarJames Simmons <uja.ornl@yahoo.com>
      Reviewed-on: https://review.whamcloud.com/32719
      
      
      Reviewed-by: default avatarAlex Zhuravlev <bzzz@whamcloud.com>
      Reviewed-by: default avatarJohn L. Hammond <jhammond@whamcloud.com>
      Reviewed-by: default avatarAndreas Dilger <adilger@whamcloud.com>
      Tested-by: Jenkins
      Tested-by: default avatarMaloo <hpdd-maloo@intel.com>
      Reviewed-by: default avatarOleg Drokin <green@whamcloud.com>
      406cd8a7
  5. May 21, 2018
  6. May 12, 2018
  7. May 06, 2018
  8. Apr 19, 2018
  9. Apr 14, 2018
  10. Mar 03, 2018
  11. Feb 22, 2018
  12. Feb 14, 2018
  13. Feb 09, 2018
  14. Jan 31, 2018
  15. Jan 09, 2018
  16. Nov 22, 2017
  17. Nov 06, 2017
  18. Oct 19, 2017
  19. Oct 16, 2017
  20. Oct 09, 2017
  21. Sep 13, 2017
  22. Sep 10, 2017
  23. Aug 17, 2017
  24. Aug 09, 2017
  25. Jul 29, 2017
  26. Jul 24, 2017
  27. Jun 10, 2017
  28. Jun 03, 2017
  29. May 29, 2017
  30. Apr 26, 2017
Loading