bsg: setting rq->bio to NULL
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Tue, 9 Jun 2009 13:17:37 +0000 (15:17 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 9 Jun 2009 13:17:37 +0000 (15:17 +0200)
commitc1d4c41f2fdfe66dea957b76d005affba3e56b26
tree9436a0f4417c1f938103a55c739c6c6e1fdbf94b
parent3af968e066d593bc4dacc021715f3e95ddf0996f
bsg: setting rq->bio to NULL

Due to commit 1cd96c242a829d52f7a5ae98f554ca9775429685 ("block: WARN
in __blk_put_request() for potential bio leak"), BSG SMP requests get
the false warnings:

WARNING: at block/blk-core.c:1068 __blk_put_request+0x52/0xc0()

This sets rq->bio to NULL to avoid that false warnings.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/bsg.c