wang di
4ee688d0d0
staging/lustre/ofd: refill env in ofd_get_info
Because ofd_get_info(KEY_FIEMAP) might be called from
ptlrpc_server_handle_req_in(see the stack below),
where env might not be initialized correctly(see LBUG below),
so it refill refill in ofd_get_info.
LutreError: 19182:0:(ofd_internal.h:518:ofd_info_init()) LBUG
Pid: 19182, comm: ll_ost_io00_001
Call Trace:
[<ffffffffa044e895>] libcfs_debug_dumpstack+0x55/0x80 [libcfs]
[<ffffffffa044ee97>] lbug_with_loc+0x47/0xb0 [libcfs]
[<ffffffffa0e03e62>] ofd_info_init+0x92/0x130 [ofd]
[<ffffffffa0e05835>] ofd_get_info+0x2e5/0xa90 [ofd]
[<ffffffff812805cd>] ? pointer+0x8d/0x830
[<ffffffffa029f7e5>] ? lprocfs_counter_add+0x125/0x182 [lvfs]
[<ffffffffa078528a>] nrs_orr_range_fill_physical+0x18a/0x540
[ptlrpc]
[<ffffffffa0762dd6>] ? __req_capsule_get+0x166/0x700 [ptlrpc]
[<ffffffffa073e630>] ? lustre_swab_ost_body+0x0/0x10 [ptlrpc]
[<ffffffffa07871d7>] nrs_orr_res_get+0x817/0xb80 [ptlrpc]
[<ffffffffa077d306>] nrs_resource_get+0x56/0x110 [ptlrpc]
[<ffffffffa077dccb>] nrs_resource_get_safe+0x8b/0x100 [ptlrpc]
[<ffffffffa0780248>] ptlrpc_nrs_req_initialize+0x38/0x90 [ptlrpc]
[<ffffffffa074cff0>] ptlrpc_main+0x1170/0x16f0 [ptlrpc]
[<ffffffffa074be80>] ? ptlrpc_main+0x0/0x16f0 [ptlrpc]
[<ffffffff8100c0ca>] child_rip+0xa/0x20
[<ffffffffa074be80>] ? ptlrpc_main+0x0/0x16f0 [ptlrpc]
[<ffffffffa074be80>] ? ptlrpc_main+0x0/0x16f0 [ptlrpc]
[<ffffffff8100c0c0>] ? child_rip+0x0/0x20
[picked ptlrpc part for upstream kernel submission]
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3239
Lustre-change: http://review.whamcloud.com/6204
Signed-off-by: wang di <di.wang@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Nikitas Angelinas <nikitas_angelinas@xyratex.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: Peng Tao <tao.peng@emc.com>
Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-06-03 11:26:34 -07:00
..
2013-05-25 20:32:00 -07:00
2013-05-12 15:19:46 +02:00
2013-05-23 09:27:08 -07:00
2013-05-17 14:31:05 -04:00
2013-05-24 16:22:52 -07:00
2013-05-07 02:16:21 -04:00
2013-05-24 16:22:52 -07:00
2013-05-25 20:30:31 -07:00
2013-05-07 11:28:42 -07:00
2013-05-25 20:32:00 -07:00
2013-05-24 18:11:10 +10:00
2013-05-25 20:30:31 -07:00
2013-05-21 09:13:11 +02:00
2013-05-09 09:59:16 -07:00
2013-05-09 10:11:48 -07:00
2013-05-23 18:24:10 -07:00
2013-05-21 08:50:57 -07:00
2013-05-06 13:07:33 +02:00
2013-05-21 09:56:55 -07:00
2013-05-19 08:19:29 -07:00
2013-05-07 14:01:27 -07:00
2013-05-21 11:11:45 -07:00
2013-05-07 02:16:21 -04:00
2013-05-11 15:23:17 -07:00
2013-05-27 10:54:33 +09:00
2013-05-08 15:29:48 -07:00
2013-05-23 13:50:03 -07:00
2013-05-06 14:59:13 -07:00
2013-05-07 11:28:42 -07:00
2013-05-20 13:38:14 -07:00
2013-05-24 16:22:51 -07:00
2013-05-08 10:49:18 +09:30
2013-05-19 18:57:50 +01:00
2013-05-18 11:55:52 +02:00
2013-05-07 02:16:21 -04:00
2013-05-08 10:13:35 -07:00
2013-05-22 07:18:41 -07:00
2013-05-23 09:26:32 -07:00
2013-05-15 13:37:54 -07:00
2013-05-18 11:55:55 +02:00
2013-05-24 08:27:32 -07:00
2013-05-15 10:58:22 -07:00
2013-05-04 14:47:26 -04:00
2013-05-18 10:46:50 -07:00
2013-05-24 22:35:46 +02:00
2013-05-17 14:12:06 -06:00
2013-05-20 07:59:46 -07:00
2013-05-10 09:09:47 -07:00
2013-05-25 20:32:49 -07:00
2013-05-18 11:55:58 +02:00
2013-05-24 16:22:51 -07:00
2013-05-09 09:59:16 -07:00
2013-05-07 14:04:56 -07:00
2013-05-07 14:02:00 -07:00
2013-05-24 16:22:53 -07:00
2013-05-21 09:36:46 -07:00
2013-05-10 07:54:01 -07:00
2013-05-18 10:54:54 -07:00
2013-05-09 10:15:46 -07:00
2013-06-03 11:26:34 -07:00
2013-05-16 07:55:07 -07:00
2013-05-18 11:57:30 +02:00
2013-05-24 16:27:37 -07:00
2013-05-21 10:13:23 -07:00
2013-05-23 09:23:32 -07:00
2013-05-08 10:49:03 +09:30
2013-05-24 16:22:52 -07:00
2013-05-18 11:58:03 +02:00
2013-05-18 11:58:04 +02:00
2013-05-20 14:14:48 -04:00
2013-05-04 12:31:18 -07:00
2013-05-04 12:31:18 -07:00