From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751527AbdAaQTo (ORCPT ); Tue, 31 Jan 2017 11:19:44 -0500 Received: from bombadil.infradead.org ([65.50.211.133]:41953 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751483AbdAaQTh (ORCPT ); Tue, 31 Jan 2017 11:19:37 -0500 From: Christoph Hellwig To: axboe@kernel.dk Cc: linux-block@vger.kernel.org, linux-scsi@vger.kernel.org, linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Subject: remove the cmd_type field from struct request Date: Tue, 31 Jan 2017 16:57:21 +0100 Message-Id: <1485878251-6107-1-git-send-email-hch@lst.de> X-Mailer: git-send-email 2.1.4 X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jens, this series gets rid of the cmd_type field in struct request and instead folds it into the REQ_OP* space. This reduces the size of struct request, and leads to a single op namespace that drivers can easily switch on. Except for the legacy ide driver which has a mess of different request types [1] this also nicely cleans up the code. Note that the patches are on top of the "make SCSI passthrough support optional" series I sent out on Saturday. To make life easier I also have a git tree available here: git://git.infradead.org/users/hch/block.git cmd_type http://git.infradead.org/users/hch/block.git/shortlog/refs/heads/cmd_type [1] which were a pain in the ass to untangle and debug during development, it's really time for it to die..