[DLM] Fix potential conflict in DLM userland locks
authorPatrick Caulfield <pcaulfie@redhat.com>
Mon, 19 Jun 2006 20:27:52 +0000 (16:27 -0400)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 19 Jun 2006 20:27:52 +0000 (16:27 -0400)
commit9f5aa2a921797ce6eb4542c7517915bd1d5fbd0b
tree69989c1aa9c05af3589e8b2b7c167a81626cb853
parentb61dde795f120f5dca2c865a1860dd9ff76705a1
[DLM] Fix potential conflict in DLM userland locks

Just spotted this one. The lockinfo structs are hashed by lockid but into a
global structure. So that if there are two lockspaces with the same lockid all
hell breaks loose. I'm not exactly sure what will happen but it can't be good!

The attached patch moves the lockinfo_idr into the user_ls structure so that
lockids are localised.

patrick

Signed-Off-By: Patrick Caulfield <pcaulfie@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/dlm/device.c