[lkml]   [2000]   [Aug]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
SubjectRe: [FIX] Make deadlock detection work for file locking
On Tue, Aug 22, 2000 at 10:45:27AM +1000, Stephen Rothwell wrote:
> Christian Ehrhardt <> writes:
> > Mostly curious: What kind of problems did you have with deadlock
> > detection? AFAICS your patch looks ok, but deadlock detections seems
> > to be functionally equivilent with or without the patch.
> Well, actually the following program just hangs on 2.4.0-test7pre4
> and reports EDEADLOCK after the patch is applied.

Ok. You're right. This is the real reason why deadlock detection fails:

--- locks.c.orig Tue Aug 22 22:45:06 2000
+++ locks.c Tue Aug 22 22:45:54 2000
@@ -479,3 +479,3 @@
list_for_each(btmp, &fl->fl_block) {
- struct file_lock *bfl = list_entry(tmp, struct file_lock, fl_block);
+ struct file_lock *bfl = list_entry(btmp, struct file_lock, fl_block);
if (bfl->fl_owner == blocked_owner &&
No that I know _why_ your patch fixes deadlock detection, go
ahead an try to get your original patch included.

sorry for the noise and best regards Christian

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:38    [W:0.081 / U:1.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site