]> git.baikalelectronics.ru Git - kernel.git/commit
DLM: fix race condition between dlm_send and dlm_recv
authortsutomu.owa@toshiba.co.jp <tsutomu.owa@toshiba.co.jp>
Tue, 12 Sep 2017 08:55:50 +0000 (08:55 +0000)
committerDavid Teigland <teigland@redhat.com>
Mon, 25 Sep 2017 17:45:21 +0000 (12:45 -0500)
commitcd22a60a1dd1ce7fca237109ee40c07b014c4806
tree094b58c402c38d5fea012fefd4d029c7c0d4af90
parent7905a12b39eac842bfe45546bdc60c02be959817
DLM: fix race condition between dlm_send and dlm_recv

When kernel_sendpage(in send_to_sock) and kernel_recvmsg
(in receive_from_sock) return error, close_connection may works at the
same time. At that time, they may wait for each other by cancel_work_sync.

Signed-off-by: Tadashi Miyauchi <miayuchi@toshiba-tops.co.jp>
Signed-off-by: Tsutomu Owa <tsutomu.owa@toshiba.co.jp>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/lowcomms.c