From: Eric Paris Date: Mon, 24 Aug 2009 20:03:35 +0000 (-0400) Subject: inotify: fix locking around inotify watching in the idr X-Git-Tag: v2.6.31-rc8~4^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dead537dd8a1c9495322c1d6f7c780697f474af0;p=pandora-kernel.git inotify: fix locking around inotify watching in the idr The are races around the idr storage of inotify watches. It's possible that a watch could be found from sys_inotify_rm_watch() in the idr, but it could be removed from the idr before that code does it's removal. Move the locking and the refcnt'ing so that these have to happen atomically. Signed-off-by: Eric Paris --- Reading git-diff-tree failed