]> Git Repo - linux.git/commit
scsi: implement .cleanup_rq callback
authorMing Lei <[email protected]>
Thu, 25 Jul 2019 02:05:00 +0000 (10:05 +0800)
committerJens Axboe <[email protected]>
Mon, 5 Aug 2019 03:42:08 +0000 (21:42 -0600)
commitb7e9e1fb7a9227be34ad4a5e778022c3164494cf
tree8bc7fbf19896194d3c72bde6105bc69e379c7a8c
parent226b4fc75c78f9c497c5182d939101b260cfb9f3
scsi: implement .cleanup_rq callback

Implement .cleanup_rq() callback for freeing driver private part
of the request. Then we can avoid to leak this part if the request isn't
completed by SCSI, and freed by blk-mq or upper layer(such as dm-rq) finally.

Cc: Ewan D. Milne <[email protected]>
Cc: Bart Van Assche <[email protected]>
Cc: Hannes Reinecke <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: Mike Snitzer <[email protected]>
Cc: [email protected]
Cc: <[email protected]>
Fixes: 396eaf21ee17 ("blk-mq: improve DM's blk-mq IO merging via blk_insert_cloned_request feedback")
Signed-off-by: Ming Lei <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
drivers/scsi/scsi_lib.c
This page took 0.040582 seconds and 4 git commands to generate.