diff options
| author | Bart Van Assche <bart.vanassche@wdc.com> | 2017-08-17 23:13:26 +0300 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2017-08-18 17:45:29 +0300 |
| commit | f18c17c889e2d3a9fa079ca883534b41d9dd3155 (patch) | |
| tree | 5fab9bf17bbd2d62a1a897fbe162be3c086571b6 /scripts | |
| parent | 32494df9a5ae9aaf8bed23068e6ec1aeb3196ebf (diff) | |
| download | linux-f18c17c889e2d3a9fa079ca883534b41d9dd3155.tar.xz | |
skd: Enable request tags for the block layer queue
Use the request tag when allocating a skd_fitmsg_context or
skd_request_context such that the lists used to track free elements
can be eliminated. Swap the skd_end_request() and skd_release_req()
calls to avoid triggering a use-after-free. Remove
skd_fitmsg_context.state and .outstanding because FIT messages are
shared among requests and because updating a FIT message after a
request has finished whould trigger a use-after-free.
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.de>
Cc: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
