~ubuntu-branches/ubuntu/feisty/openafs/feisty

« back to all changes in this revision

Viewing changes to src/rx/LINUX/rx_knet.c

  • Committer: Package Import Robot
  • Author(s): Russ Allbery
  • Date: 2007-03-26 18:56:55 UTC
  • Revision ID: package-import@ubuntu.com-20070326185655-osce8n0y0dptgurh
* New upstream release.  (Closes: #415699)
  - Support newer Linux kernels.  (Closes: #409797, #410120)
  - Add aklog fallbacks for null realms to support the referral
    capability in MIT Kerberos 1.6 and later.  (Closes: #410314)
* Apply patch from Thomas Sesselmann to support setting options to pass
  to bosserver in /etc/default/openafs-fileserver.  (Closes: #409357)
* Remove the rx_Init calls in the PAM module.  The internal counters
  that had to be initialized that way have been removed.
* Now that we're running regen.sh as part of the build process, only
  patch the Autoconf source files and not the generated output to make
  the diff easier to audit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
#include "afs/param.h"
17
17
 
18
18
RCSID
19
 
    ("$Header: /cvs/openafs/src/rx/LINUX/rx_knet.c,v 1.23.2.11 2006/12/28 21:32:09 shadow Exp $");
 
19
    ("$Header: /cvs/openafs/src/rx/LINUX/rx_knet.c,v 1.23.2.12 2007/02/26 17:59:21 shadow Exp $");
20
20
 
21
21
#include <linux/version.h>
22
22
#ifdef AFS_LINUX22_ENV
204
204
 
205
205
    return code;
206
206
}
 
207
#ifdef EXPORTED_TASKLIST_LOCK
207
208
extern rwlock_t tasklist_lock __attribute__((weak));
 
209
#endif
208
210
void
209
211
osi_StopListener(void)
210
212
{
211
213
    struct task_struct *listener;
212
214
    extern int rxk_ListenerPid;
213
215
 
 
216
#ifdef EXPORTED_TASKLIST_LOCK
214
217
    if (&tasklist_lock)
215
218
      read_lock(&tasklist_lock);
 
219
#endif
216
220
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
 
221
#ifdef EXPORTED_TASKLIST_LOCK
217
222
    else
 
223
#endif
218
224
      rcu_read_lock();
219
225
#endif
220
226
    listener = find_task_by_pid(rxk_ListenerPid);
 
227
#ifdef EXPORTED_TASKLIST_LOCK
221
228
    if (&tasklist_lock)
222
229
       read_unlock(&tasklist_lock);
 
230
#endif
223
231
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
 
232
#ifdef EXPORTED_TASKLIST_LOCK
224
233
    else
 
234
#endif
225
235
      rcu_read_unlock();
226
236
#endif
227
237
    while (rxk_ListenerPid) {