]> git.karo-electronics.de Git - karo-tx-linux.git/commit
pnfsblock: acquire im_lock in _preload_range
authorPeng Tao <bergwolf@gmail.com>
Thu, 12 Jan 2012 15:18:41 +0000 (23:18 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 26 Jan 2012 00:13:36 +0000 (16:13 -0800)
commitae6481331e29dd7a055c70b7abaaef9e01c60ced
tree05963a0a479e92711ab0f867276d4c73c9aa20e6
parent1f489b2d822abdaf2bf6b7101073edec767e77c3
pnfsblock: acquire im_lock in _preload_range

commit 39e567ae36fe03c2b446e1b83ee3d39bea08f90b upstream.

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

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/nfs/blocklayout/extents.c