]> granicus.if.org Git - spl/commit
Linux 2.6.36 compat, fs_struct->lock type change
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 9 Nov 2010 19:15:32 +0000 (11:15 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 9 Nov 2010 21:29:47 +0000 (13:29 -0800)
commit9b2048c26b2579f2de40a185dc56261dd98e7ea3
treede169ff7b61102009c666d60b648c24881b00ad5
parenta50cede3880ca0f7f7f10acc01bebd8617fc48ad
Linux 2.6.36 compat, fs_struct->lock type change

In the linux-2.6.36 kernel the fs_struct lock was changed from a
rwlock_t to a spinlock_t.  If the kernel would export the set_fs_pwd()
symbol by default this would not have caused us any issues, but they
don't.  So we're forced to add a new autoconf check which sets the
HAVE_FS_STRUCT_SPINLOCK define when a spinlock_t is used.  We can
then correctly use either spin_lock or write_lock in our custom
set_fs_pwd() implementation.
config/spl-build.m4
configure
module/spl/spl-vnode.c
spl_config.h.in