aboutsummaryrefslogtreecommitdiff
path: root/drivers/message/fusion/lsi/mpi_raid.h
diff options
context:
space:
mode:
authorChris Mason <clm@fb.com>2014-01-09 17:28:00 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-02-06 11:34:11 -0800
commit5d4d57d2f5cd27b27505d24766fa0f0952e2a19b (patch)
tree27a308bbce5a70e3e591671d3930f3f7324d1895 /drivers/message/fusion/lsi/mpi_raid.h
parentfb0f7df29d50332f5b79c84e954d30acf7961884 (diff)
Btrfs: setup inode location during btrfs_init_inode_locked
commit 90d3e592e99b8e374ead2b45148abf506493a959 upstream. We have a race during inode init because the BTRFS_I(inode)->location is setup after the inode hash table lock is dropped. btrfs_find_actor uses the location field, so our search might not find an existing inode in the hash table if we race with the inode init code. This commit changes things to setup the location field sooner. Also the find actor now uses only the location objectid to match inodes. For inode hashing, we just need a unique and stable test, it doesn't have to reflect the inode numbers we show to userland. Signed-off-by: Chris Mason <clm@fb.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/message/fusion/lsi/mpi_raid.h')
0 files changed, 0 insertions, 0 deletions