scsi: add host template init/exit_command hooks
authorJens Axboe <axboe@fb.com>
Fri, 3 Apr 2015 15:43:51 +0000 (09:43 -0600)
committerJens Axboe <axboe@fb.com>
Fri, 3 Apr 2015 16:32:20 +0000 (10:32 -0600)
commit21a646d20765cda47818e10f7485471eb0d75d5c
treeb88a5f54318becc0a0da081ced673bbcd6f46d5e
parent06e6f29b709400ce05cdb0d0b0710082f96a1249
scsi: add host template init/exit_command hooks

If a LLD has hardware commands in the request pdu, then we need some
helper hooks to help the driver initialize state at load time, and
potentially to tear down state at rmmod time. Add a host template
->init_command() and ->exit_command() hook to help with that.

Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/scsi/scsi_lib.c
include/scsi/scsi_host.h