From 3deee42088ddcf5b23021aa089b53444797e565d Mon Sep 17 00:00:00 2001 From: Joe Eykholt Date: Thu, 5 Aug 2010 17:50:37 -0700 Subject: [PATCH] [SCSI] tgt: fix warning Using scsi_tgt_lib in a new target module, we were getting the following warning and a stack traceback on every I/O completion: WARNING: at block/blk-core.c:1108 Which is claiming we may be leaking a bio. We don't leak bios (blk_rq_unmap_user should free them). Set rq->bio to NULL before calling scsi_host_put_command(). This was as advised by Fujita Tomonori. Signed-off-by: Joe Eykholt Acked-by: FUJITA Tomonori Signed-off-by: James Bottomley --- Reading git-format-patch failed