scsi: core: reshuffle no_scsi2_lun_in_cdb for better alignment
authorHannes Reinecke <hare@suse.com>
Tue, 26 Feb 2019 15:00:39 +0000 (16:00 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 19 Mar 2019 17:57:28 +0000 (13:57 -0400)
no_scsi2_lun_in_cdb declares a new bitfield, but we should rather move
it to the existing bitfield for better alignment.

Signed-off-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
include/scsi/scsi_host.h

index 2b539a1b3f62dbfee7e7532dc2a99033200c9c8e..a5fcdad4a03e8757213db6983ae0b221275ae5a1 100644 (file)
@@ -628,6 +628,9 @@ struct Scsi_Host {
        /* Host responded with short (<36 bytes) INQUIRY result */
        unsigned short_inquiry:1;
 
+       /* The transport requires the LUN bits NOT to be stored in CDB[1] */
+       unsigned no_scsi2_lun_in_cdb:1;
+
        /*
         * Optional work queue to be utilized by the transport
         */
@@ -639,9 +642,6 @@ struct Scsi_Host {
         */
        struct workqueue_struct *tmf_work_q;
 
-       /* The transport requires the LUN bits NOT to be stored in CDB[1] */
-       unsigned no_scsi2_lun_in_cdb:1;
-
        /*
         * Value host_blocked counts down from
         */