Whamcloud - gitweb
LU-2224 osd-zfs: Fix osd_commit_async() locking
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 25 Oct 2012 05:45:40 +0000 (22:45 -0700)
committerOleg Drokin <green@whamcloud.com>
Mon, 29 Oct 2012 05:30:17 +0000 (01:30 -0400)
commit2eac0e35ae662ba0839b0867820608ab4800fa44
tree59a994a4c38c9b5f34fc88d7ed831f8d5625536a
parent54fe9796ec837698a27420c8a92d9493c733b6a9
LU-2224 osd-zfs: Fix osd_commit_async() locking

The ZFS osd_commit_async() function never properly acquires the
tx->tx_sync_lock() mutex to protext the tx_state_t.  However,
the mutex is correctly dropped so we just add the obviously
missing mutex_enter().

Change-Id: Iae426feaeb5885034515d6bf0ccb9509ed098bb0
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-on: http://review.whamcloud.com/4383
Tested-by: Hudson
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Prakash Surya <surya1@llnl.gov>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
lustre/osd-zfs/osd_handler.c