Whamcloud - gitweb
LU-12094 ptlrpc: protect obd_import in lprocfs_import_seq_write 53/35853/3
authorJames Simmons <jsimmons@infradead.org>
Thu, 22 Aug 2019 23:52:12 +0000 (19:52 -0400)
committerOleg Drokin <green@whamcloud.com>
Sat, 7 Sep 2019 01:53:24 +0000 (01:53 +0000)
commit6d68eb9f73a0582ad5c215d210275ca20436f1d0
treeb6d8d7d750a87cd21ca41e0dfa444e0d9c8c4595
parenta3ec8ff69fceb53a467a80c2e6008869f25f72b4
LU-12094 ptlrpc: protect obd_import in lprocfs_import_seq_write

The obd_import can disappear so take the cl_sem to protect it.

Change-Id: I36f2c4c606a0470781a692631265938848173f8b
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/35853
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Emoly Liu <emoly@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/ptlrpc/lproc_ptlrpc.c