]> git.ipfire.org Git - people/arne_f/kernel.git/commit
scsi: core: Also call destroy_rcu_head() for passthrough requests
authorBart Van Assche <bvanassche@acm.org>
Mon, 18 Mar 2019 16:29:26 +0000 (09:29 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Apr 2019 07:16:51 +0000 (09:16 +0200)
commit9ec3c84936f7206bb68cbba3c543cfafcaab9c63
tree3896763a514fbe13f644f9f5ab1339eb8732188b
parent638bf55940b966047555ba1caac93799749bb350
scsi: core: Also call destroy_rcu_head() for passthrough requests

[ Upstream commit db983f6eef57a9d78af79bc32389b7e60eb3c47d ]

cmd->rcu is initialized by scsi_initialize_rq(). For passthrough
requests, blk_get_request() calls scsi_initialize_rq(). For filesystem
requests, scsi_init_command() calls scsi_initialize_rq(). Make sure
that destroy_rcu_head() is called for passthrough requests.

Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.com>
Cc: Ewan D. Milne <emilne@redhat.com>
Cc: Johannes Thumshirn <jthumshirn@suse.de>
Reported-by: Ewan D. Milne <emilne@redhat.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/scsi_lib.c