]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - block/blk-core.c
block: WARN in __blk_put_request() for potential bio leak
[linux-2.6-omap-h63xx.git] / block / blk-core.c
index 7b63c9b6333d7e051f20588083ccaf90ff43540f..996ed906d8ca518c62dba691ad7b579ee794e1a0 100644 (file)
@@ -1062,6 +1062,9 @@ void __blk_put_request(struct request_queue *q, struct request *req)
 
        elv_completed_request(q, req);
 
+       /* this is a bio leak */
+       WARN_ON(req->bio != NULL);
+
        /*
         * Request may not have originated from ll_rw_blk. if not,
         * it didn't come out of our reserved rq pools