Whamcloud - gitweb
LU-7593 target: take ted_lcd_lock after transaction started 29/23129/3
authorFan Yong <fan.yong@intel.com>
Wed, 27 Jul 2016 14:55:00 +0000 (22:55 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 25 Oct 2016 02:24:21 +0000 (02:24 +0000)
commitcbca8055b75d084bc6554d1a06f3cd8ccf2f8c09
tree4edf5f68a8258a4dd873527420476a3805ecb944
parentb4d1883392e3e6d01ba0a4fd2fdd12fdcc2cc277
LU-7593 target: take ted_lcd_lock after transaction started

Otherwise the thread1 may be blocked during the transaction start
in tgt_client_data_update() with 'ted_lcd_lock' held because another
thread2 may be blocked by such lock in tgt_txn_stop_cb() but with
transaction handle started. That is deadlock.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: Id623d171e43beaa54ae4a9718fb4dc52c474df01
Reviewed-on: http://review.whamcloud.com/23129
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Tested-by: Jenkins
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/target/tgt_lastrcvd.c