corruption with mtdblock
David Woodhouse
dwmw2 at infradead.org
Mon Nov 6 09:54:13 EST 2000
Try this:
Index: mtdblock.c
===================================================================
RCS file: /home/cvs/mtd/kernel/mtdblock.c,v
retrieving revision 1.29
diff -u -r1.29 mtdblock.c
--- mtdblock.c 2000/11/03 04:59:01 1.29
+++ mtdblock.c 2000/11/06 14:54:06
@@ -58,6 +58,11 @@
#define blkdev_dequeue_request(req) do {CURRENT = req->next;} while (0)
#else
#define RQFUNC_ARG request_queue_t *q
+static void mtdblock_plug_device(request_queue_t *q, kdev_t dev)
+{
+ /* Do nothing. We don't want plugging */
+ return;
+}
#endif
@@ -616,6 +621,7 @@
blk_dev[MAJOR_NR].request_fn = mtdblock_request;
#else
blk_init_queue(BLK_DEFAULT_QUEUE(MAJOR_NR), &mtdblock_request);
+ blk_queue_pluggable(BLK_DEFAULT_QUEUE(MAJOR_NR), &mtdblock_plug_device)
#endif
kernel_thread (mtdblock_thread, NULL, CLONE_FS|CLONE_FILES|CLONE_SIGHAND);
return 0;
--
dwmw2
To unsubscribe, send "unsubscribe mtd" to majordomo at infradead.org
More information about the linux-mtd
mailing list