[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-xfs
Subject: [PATCH 1/5] block: do not try to merge discard requests
From: Christoph Hellwig <hch () infradead ! org>
Date: 2011-03-31 11:28:51
Message-ID: 20110331112952.144090797 () bombadil ! infradead ! org
[Download RAW message or body]
Hack to not make the kernel crash when submitting multiple discard
requests that the blocl layer otherwise tries to merge.
Index: xfs/block/blk-core.c
===================================================================
--- xfs.orig/block/blk-core.c 2011-03-30 16:04:45.700659775 +0200
+++ xfs/block/blk-core.c 2011-03-30 16:04:59.775160021 +0200
@@ -1247,7 +1247,7 @@ static int __make_request(struct request
*/
blk_queue_bounce(q, &bio);
- if (bio->bi_rw & (REQ_FLUSH | REQ_FUA)) {
+ if (bio->bi_rw & (REQ_FLUSH | REQ_FUA | REQ_DISCARD)) {
spin_lock_irq(q->queue_lock);
where = ELEVATOR_INSERT_FLUSH;
goto get_rq;
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic