Whamcloud - gitweb
LU-6421 osc: fix bug when setting max_pages_per_rpc 33/14333/5
authorWu Libin <lwu@ddn.com>
Wed, 1 Apr 2015 16:54:30 +0000 (00:54 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 27 Apr 2015 17:26:25 +0000 (17:26 +0000)
commit59efcfeb109edd2c695ce961fb8c872d9c515116
tree6c39e3858464f23365ccd1b4456a9e29cfc4596a
parent0444a40d9838b868092c78d3bdd4c7c3a00199e6
LU-6421 osc: fix bug when setting max_pages_per_rpc

After setting like "lctl set_param -P osc.*.max_pages_per_rpc", it
is possible that the function osc_obd_max_pages_per_rpc_seq_write
will be called before ocd_brw_size has been set when mount.
ocd_brw_size is meaningless when it is zero. So it should not be
the limit at that time.

Signed-off-by: Wu Libin <lwu@ddn.com>
Change-Id: I1abbd1bfc089ca1fea2b7ec71a6d45ee70f1ba20
Reviewed-on: http://review.whamcloud.com/14333
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Emoly Liu <emoly.liu@intel.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/osc/lproc_osc.c