diff options
author | Krishnan Parthasarathi <kparthas@redhat.com> | 2013-05-20 17:17:05 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2013-05-20 21:08:24 -0700 |
commit | 277fabf577f95b20c61d65b28f8269e6abca6fee (patch) | |
tree | 5a4ec5e13864573c677a1a983923a5c9a8613615 /xlators/performance/md-cache | |
parent | 27b457fad288cc896db3151bf3bc71cce72f5499 (diff) |
syncop: Remove task from syncbarrier's waitq before 'wake'
Removing task from syncbarrier's waitq after wake could result in a
subsequent syncbarrier_wake, wake'ing up the already running task. This
fix makes the removal from waitq and wake 'atomic'
The root cause and the fix are similar in spirit to what was observed
in synclock's waitq implementation.
Change-Id: I7dd9e6ad5945742bcda20eb5a06a9376bb18528e
BUG: 948686
Signed-off-by: Krishnan Parthasarathi <kparthas@redhat.com>
Reviewed-on: http://review.gluster.org/5047
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators/performance/md-cache')
0 files changed, 0 insertions, 0 deletions