Whamcloud - gitweb
LU-911 ost: ost_handle() to refill environment on every requests
authorMikhail Pershin <tappro@whamcloud.com>
Thu, 12 Apr 2012 10:09:20 +0000 (14:09 +0400)
committerOleg Drokin <green@whamcloud.com>
Mon, 30 Apr 2012 01:59:08 +0000 (21:59 -0400)
commit8ca651d636c37339cc50bffa4532b7cbd0ead570
tree16e9f9ef37b32425e7c308fce819f06b78ae22ef
parentbe4aab676e899aa9dec80445fb7edb202b4d4748
LU-911 ost: ost_handle() to refill environment on every requests

OST threads hold environment (lu_env) for request handling. when
a last instance of some device (say ofd or osd) gone, all keys
registered by the device are released, but enviroments are kept.
then at device instantiation the environments aren't repopulated.
this patch fixes this.

Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: Ib691f22955d40335535fcf3013d62badb24f7f49
Signed-off-by: Mikhail Pershin <tappro@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/1850
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/obdclass/lu_object.c
lustre/ost/ost_handler.c