Re: [PATCH: 2.6.20-rc4-mm1] JFS: Avoid deadlock introduced by explicit I/O plugging

From: Josef Sipek
Date: Thu Jan 18 2007 - 01:32:52 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/