void ncpdgram_timeout_proc(struct work_struct *work) { struct ncp_server *server = container_of(work, struct ncp_server, timeout_tq); mutex_lock(&server->rcv.creq_mutex); __ncpdgram_timeout_proc(server); mutex_unlock(&server->rcv.creq_mutex); }
void ncpdgram_timeout_proc(void *s) { mm_segment_t fs; struct ncp_server *server = s; fs = get_fs(); set_fs(get_ds()); down(&server->rcv.creq_sem); __ncpdgram_timeout_proc(server); up(&server->rcv.creq_sem); set_fs(fs); }