Re: split scsi passthrough fields out of struct request V2
From: Jens Axboe <axboe@fb.com>
Date: 2017-01-27 16:11:14
Also in:
dm-devel, linux-block, linux-scsi
From: Jens Axboe <axboe@fb.com>
Date: 2017-01-27 16:11:14
Also in:
dm-devel, linux-block, linux-scsi
On Wed, Jan 25 2017, Christoph Hellwig wrote:
Hi all, this series splits the support for SCSI passthrough commands from the main struct request used all over the block layer into a separate scsi_request structure that drivers that want to support SCSI passthough need to embedded as the first thing into their request-private data, similar to how we handle NVMe passthrough commands. To support this I've added support for that the private data after request structure to the legacy request path instead, so that it can be treated the same way as the blk-mq path. Compare to the current scsi_cmnd allocator that actually is a major simplification. Changes since V1: - fix handling of a NULL sense pointer in __scsi_execute - clean up handling of the flush flags in the block layer and MD - additional small cleanup in dm-rq
I've queued this up for 4.11. Since some of the patches had dependencies on changes in master since for-4.11/block was forked, they are sitting in a separate branch that has both for-4.11/block and v4.10-rc5 pulled in first. for-next has everything, as usual. -- Jens Axboe