Whamcloud - gitweb
LU-7428 osd: set device read-only correctly 86/20586/4
authorHongchao Zhang <hongchao.zhang@intel.com>
Sat, 28 May 2016 18:52:18 +0000 (02:52 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 14 Jun 2016 03:49:17 +0000 (03:49 +0000)
commita079ade7913b923b795ea5c01df4e69bf1a87691
treedd6e9d66b4aba644f714515de348da5417f507d3
parentd59d553dc18189dfc5e43196f7c8a2bd6346b675
LU-7428 osd: set device read-only correctly

Freeze the journal before setting device read-only to prevent
starting a new handle or commit a transaction in that time.

Seagate-bug-id: MRP-2135

Some of the patch is from http://review.whamcloud.com/20535

Change-Id: Iadcb0a7ccf9189e8bb564aa4783bae9a2ef86a76
Signed-off-by: Alexey Lyashkov <alexey.lyashkov@seagate.com>
Signed-off-by: vinayakswami hariharmath <vinayakswami.hariharmath@seagate.com>
Signed-off-by: Gu Zheng <gzheng@ddn.com>
Signed-off-by: Hongchao Zhang <hongchao.zhang@intel.com>
Reviewed-on: http://review.whamcloud.com/20586
Reviewed-by: Wang Shilong <wshilong@ddn.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_internal.h
lustre/osd-ldiskfs/osd_handler.c