Samba and spinlocks on Linux (was Re: REPOST: Meaning of "tdb_free: left read failed at ...?"

Ralf G. R. Bergs rabe+samba at RWTH-Aachen.DE
Wed Feb 5 09:21:15 GMT 2003

On Tue, 04 Feb 2003 11:00:24 +0100, Volker Lendecke wrote:

>On Tue, Feb 04, 2003 at 10:17:34AM +0100, Ralf G. R. Bergs wrote:
>> Ok, now /var/run/samba is an ext3 filesystem -- and the problem is back
>> again.  :-(
>Thanks nevertheless. As one resort, could you try
>use mmap = no

I guess I should have defined CONFIG_RWSEM_GENERIC_SPINLOCK when compiling my 
kernel since I also configured Samba with "--with-spinlocks":

[2003/02/05 09:06:01, 0] tdb/tdbutil.c:tdb_log(531)
  tdb(/var/run/samba/messages.tdb): tdb_open_ex: failed to clear spinlock
[2003/02/05 09:06:01, 0] lib/messages.c:message_init(112)
  ERROR: Failed to initialise messages database

Would you recommend that I recompile the kernel to enable spinlock support 
(since this is a two-way SMP machine), or would you rather recommend that I 
don't use spinlocks (i.e. recompile Samba NOT to try to use spinlocks)?


   L I N U X       .~.
  The  Choice      /V\
   of a  GNU      /( )\
  Generation      ^^-^^

More information about the samba-technical mailing list