Skip to contentSkip to conversation

Kernel: mutex_lock_killable

PATCH In review Liam Howlett 2 participants 2 messages Nov 28, 2007 – Dec 4, 2007

lore
Share & tools
lore
#0 lore raw

cover Kernel: mutex_lock_killable

Hello,

This series of patches add the ability to make mutex locks killable instead of uninterruptable.

This patch set builds on willys 5 patches for TASK_KILLABLE that are currently in mm (see http://lkml.org/lkml/2007/10/18/423 for more details). I have used 2.6.24-rc3 with the addition of willys patches.

The first patch adds the mutex_lock_killable to the kernel/mutex.c and kernel/mutex.h.

The second patch is a use of the mutex_lock_killable to fs/readdir.c to use the new mutex_lock_killable. This was enough for a small test application to be killable once the ethernet was pulled on an nfs mount (please note that this does not allow a normal ls to be killed yet).

akpm: can you take these for merge in 2.6.25?

A big thanks to Matthew for all the help on these patches. Please CC me on any responses.

Thanks,
Liam R. Howlett

Acked-by on the v1 series
#1 lore raw
Quoted 9 lines · Liam Howlett

Hello,

This series of patches add the ability to make mutex locks killable instead of uninterruptable.

This patch set builds on willys 5 patches for TASK_KILLABLE that are currently in mm (see http://lkml.org/lkml/2007/10/18/423 for more details). I have used 2.6.24-rc3 with the addition of willys patches.

Quoted 8 lines

The first patch adds the mutex_lock_killable to the kernel/mutex.c and kernel/mutex.h.

The second patch is a use of the mutex_lock_killable to fs/readdir.c to use the new mutex_lock_killable. This was enough for a small test application to be killable once the ethernet was pulled on an nfs mount (please note that this does not allow a normal ls to be killed yet).

nice patches!

Ingo