skd: Remove SKD_ID_INCR
authorBart Van Assche <bart.vanassche@wdc.com>
Fri, 25 Aug 2017 21:24:14 +0000 (14:24 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 25 Aug 2017 21:29:45 +0000 (15:29 -0600)
commitf5cb2d51524a1218bb0c5d8b234044e9104f7062
tree2e8a43324f49cca14508d313d7ab11bf94bb76ca
parent4633504c1a3a452ff03a5dbe50beb082fa1bfac6
skd: Remove SKD_ID_INCR

The SKD_ID_INCR flag in skd_request_context.id duplicates information
that is already available otherwise, e.g. through the block layer
request state and through skd_request_context.state. Hence remove
the code that manipulates this flag and also the flag itself.
Since skd_isr_completion_posted() only uses the lower bits of
skd_request_context.id as hardware tag, this patch does not change
the behavior of the skd driver. I'm referring to the following code:

    tag = req_id & SKD_ID_SLOT_AND_TABLE_MASK;

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>
drivers/block/skd_main.c