There's no way the kernel can successfully hold a spinlock
across that call chain.
> One way to fix this is to remove the schedule call from truncate_list_pages:
>
> --- linux-2.5/mm/filemap.c~ Tue May 14 17:04:14 2002
> +++ linux-2.5/mm/filemap.c Tue May 14 17:04:33 2002
> @@ -237,11 +237,6 @@
>
> page_cache_release(page);
>
> - if (need_resched()) {
> - __set_current_state(TASK_RUNNING);
> - schedule();
> - }
> -
> write_lock(&mapping->page_lock);
> goto restart;
> }
>
> Another way is to free the lock before calling fput in shm_destroy but the
> comment says that this functions has to be called with shp and shm_ids.sem
> locked. Comments?
Maybe ipc_ids.ary should become a semaphore?
-
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/