diff options
author | David Teigland <teigland@redhat.com> | 2012-06-14 12:17:32 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2012-07-16 14:18:01 -0500 |
commit | 05c32f47bfae74dabff05208957768078b53cc49 (patch) | |
tree | 71034eba054f49723a0dac41f6bcd9d4f37eb2bc /drivers/spi/spi-davinci.c | |
parent | 1d7c484eeb167fc374294e38ae402de4097c8611 (diff) | |
download | linux-stable-05c32f47bfae74dabff05208957768078b53cc49.tar.gz linux-stable-05c32f47bfae74dabff05208957768078b53cc49.tar.bz2 linux-stable-05c32f47bfae74dabff05208957768078b53cc49.zip |
dlm: fix race between remove and lookup
It was possible for a remove message on an old
rsb to be sent after a lookup message on a new
rsb, where the rsbs were for the same resource
name. This could lead to a missing directory
entry for the new rsb.
It is fixed by keeping a copy of the resource
name being removed until after the remove has
been sent. A lookup checks if this in-progress
remove matches the name it is looking up.
Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'drivers/spi/spi-davinci.c')
0 files changed, 0 insertions, 0 deletions