[OpenAFS] Open AFS on RedHat Enterprise Linux WS....

Chaskiel M Grundman cg2v@andrew.cmu.edu
Thu, 21 Apr 2005 22:21:58 -0400


--==========DA0D3152E88146417651==========
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline



--On Thursday, April 21, 2005 07:30:49 PM -0400 Jason McCormick=20
<jasonmc@cert.org> wrote:

>> Attached is the 'SysRq t' output from the EL4 test box.  The procedure
>> I'm following here is:

touch         S 1D244B3C  1472  3557   3513                     (NOTLB)
 [<f94c9c4d>] afs_osi_SleepSig+0x87/0xd5 [libafs]
 [<f94c9e04>] afs_osi_Sleep+0x169/0x2cd [libafs]
 [<f94b0ed6>] afs_close+0x173/0x341 [libafs]

This appears to be blocked waiting for an 'afs_background' thread to=20
service a store request (around line 886 of afs_vnop_store.c; There are no=20
other osi_Sleep's in afs_close())

However, both of the afs_background processes appear to be idle, waiting=20
for work (around line 1258 of afs_daemons.c):
afs_backgroun S 1D244B3C  3688  2454      1          2456  2452 (L-TLB)
[<f94c9c4d>] afs_osi_SleepSig+0x87/0xd5 [libafs]
[<f94c9e04>] afs_osi_Sleep+0x169/0x2cd [libafs]
[<f94903f0>] afs_BackgroundDaemon+0x243/0x298 [libafs]

afs_backgroun S 00000670  3336  2456      1          2458  2454 (L-TLB)
[<f94c9c4d>] afs_osi_SleepSig+0x87/0xd5 [libafs]
[<f94c9e04>] afs_osi_Sleep+0x169/0x2cd [libafs]
[<f94903f0>] afs_BackgroundDaemon+0x243/0x298 [libafs]

This doesn't really make sense. It's possible that one or more of these=20
threads is actually blocked on a lock (which running 'cmdebug <client>'=20
will reveal if it is the case)

I suppose it's also possible that CONFIG_PREEMPT_VOLUNTARY is causing a=20
problem, but
I think it is unlikely (there are no resched points inside ObtainXXXLock,=20
so I don't see how they could race). If you want to make sure that isn't=20
the problem, then either a) test on an smp kernel, or b) build afs with the =

following change. On or around line 206 of src/afs/LINUX/osi_machdep.h,=20
change '#if defined(__KERNEL__) && defined(CONFIG_SMP)' to '#if=20
defined(__KERNEL__)'. also change line 27 of src/rx/LINUX/rx_kmutex.h to=20
'#if 1', and line 357 of src/rx/rx_prototypes.h to '#if defined(KERNEL) &&=20
defined(AFS_LINUX20_ENV)'
--==========DA0D3152E88146417651==========
Content-Type: application/pkcs7-signature
Content-Transfer-Encoding: base64

MIIOmAYJKoZIhvcNAQcCoIIOiTCCDoUCAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3
DQEHAaCCDAQwggS/MIICp6ADAgECAgMAnckwDQYJKoZIhvcNAQEEBQAweTEQMA4G
A1UEChMHUm9vdCBDQTEeMBwGA1UECxMVaHR0cDovL3d3dy5jYWNlcnQub3JnMSIw
IAYDVQQDExlDQSBDZXJ0IFNpZ25pbmcgQXV0aG9yaXR5MSEwHwYJKoZIhvcNAQkB
FhJzdXBwb3J0QGNhY2VydC5vcmcwHhcNMDQwNzEzMDEzODAyWhcNMDUwNzEzMDEz
ODAyWjA/MRkwFwYDVQQDExBDQWNlcnQgVXNlciBDZXJ0MSIwIAYJKoZIhvcNAQkB
FhNjZzJ2QGFuZHJldy5jbXUuZWR1MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB
CgKCAQEAoMPgwO7Y4nAhlbGEhCjKauDlj1wtQVIR/wHuCChDzSJMy0HVD73pIpUf
PYcsGGnr3qScinkGtdFICULOtNGRJLDgFizaxHhkaJhzNKL6NaNpu3TV34NcYc1F
vz6xlppMYzt9DDHxgq0lSiZr4PWfW/9xEZMPh4NnAa7v8l3eaP5wmDsQxrmjNsrv
+jA0vYqXa0XeCO2r/28+is6i3NpH3+R+ocuVekyZwuHh1SHr4EnCEP2xW7rBimf9
3WdrZh7RD9XuQQn4AQMyTvYiO1PkX7MgNy9dNMcxf/82oMC25MMrrLoiLXT9ZPZC
Me2nrAfd0q4K2d1fVlhqen23DqlieQIDAQABo4GJMIGGMAwGA1UdEwEB/wQCMAAw
VgYJYIZIAYb4QgENBEkWR1RvIGdld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