lkml.org 
[lkml]   [2007]   [Jan]   [18]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateThu, 18 Jan 2007 01:30:19 -0500
FromJosef Sipek <>
SubjectRe: [PATCH: 2.6.20-rc4-mm1] JFS: Avoid deadlock introduced by explicit I/O plugging
On Wed, Jan 17, 2007 at 04:55:49PM -0600, Dave Kleikamp wrote:
...
> diff -Nurp linux-2.6.20-rc4-mm1/fs/jfs/jfs_lock.h linux/fs/jfs/jfs_lock.h
> --- linux-2.6.20-rc4-mm1/fs/jfs/jfs_lock.h	2006-11-29 15:57:37.000000000 -0600
> +++ linux/fs/jfs/jfs_lock.h	2007-01-17 15:30:19.000000000 -0600
> @@ -22,6 +22,7 @@
>  #include <linux/spinlock.h>
>  #include <linux/mutex.h>
>  #include <linux/sched.h>
> +#include <linux/blkdev.h>
> 
>  /*
>   *	jfs_lock.h
> @@ -42,6 +43,7 @@ do {							\
>  		if (cond)				\
>  			break;				\
>  		unlock_cmd;				\
> +		blk_replug_current_nested();		\
>  		schedule();				\
>  		lock_cmd;				\
>  	}						\

Is {,un}lock_cmd a macro? ...
Jeff.

-- 
Keyboard not found!
Press F1 to enter Setup
-
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/

\
 
 \ /
  Last update: 2007-01-18 07:55    [from the cache]
©2003-2008