pnfsblock: acquire im_lock in _preload_range
authorPeng Tao <bergwolf@gmail.com>
Thu, 12 Jan 2012 15:18:41 +0000 (23:18 +0800)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 12 Jan 2012 21:38:49 +0000 (16:38 -0500)
commit39e567ae36fe03c2b446e1b83ee3d39bea08f90b
tree0f7c3c1ec9dd0fb7a8b36e3ac4818eb870de0580
parentde040beccd52bb5fcac90031505384d037b1111c
pnfsblock: acquire im_lock in _preload_range

When calling _add_entry, we should take the im_lock to protect
agains other modifiers.

Cc: <stable@vger.kernel.org> #3.1+
Signed-off-by: Peng Tao <peng_tao@emc.com>
Signed-off-by: Benny Halevy <bhalevy@tonian.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/blocklayout/extents.c