]> git.baikalelectronics.ru Git - kernel.git/commit
staging: lustre: llite: error setting max_cache_mb at mount time
authorJinshan Xiong <jinshan.xiong@intel.com>
Tue, 12 Apr 2016 20:14:07 +0000 (16:14 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Apr 2016 22:13:13 +0000 (15:13 -0700)
commit8de917bf20b3385ef37ad1784d9b9a8b9d2e3472
tree40ae5a30a3c0a7f365b84b9737a7623d0f865c61
parent08f507cb48bc9268b914d7a8d2a97bceef208b6e
staging: lustre: llite: error setting max_cache_mb at mount time

The root cause is that when max_cache_mb conf parameter is applied,
the client isn't connected to the OST yet so that sbi->ll_dt_exp is
NULL. However, it's not necessary to shrink the cache memory in this
case so success should be returned.

Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3676
Reviewed-on: http://review.whamcloud.com/7194
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Bobi Jam <bobijam@gmail.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/lproc_llite.c