* [PATCH] genhd: remove dead and duplicated scsi code
@ 2016-12-20 21:38 Jon Derrick
2016-12-21 7:50 ` Christoph Hellwig
2016-12-22 18:24 ` Jens Axboe
0 siblings, 2 replies; 3+ messages in thread
From: Jon Derrick @ 2016-12-20 21:38 UTC (permalink / raw)
To: axboe; +Cc: Jon Derrick, linux-block
blk_scsi_cmd_filter use was deprecated by 4beab5c6 and the SCSI macros
are duplicated in blkdev.h, both likely reintroduced by a bad merge from
540eed56.
Signed-off-by: Jon Derrick <jonathan.derrick@intel.com>
---
include/linux/genhd.h | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/include/linux/genhd.h b/include/linux/genhd.h
index e0341af..76f3975 100644
--- a/include/linux/genhd.h
+++ b/include/linux/genhd.h
@@ -146,15 +146,6 @@ enum {
DISK_EVENT_EJECT_REQUEST = 1 << 1, /* eject requested */
};
-#define BLK_SCSI_MAX_CMDS (256)
-#define BLK_SCSI_CMD_PER_LONG (BLK_SCSI_MAX_CMDS / (sizeof(long) * 8))
-
-struct blk_scsi_cmd_filter {
- unsigned long read_ok[BLK_SCSI_CMD_PER_LONG];
- unsigned long write_ok[BLK_SCSI_CMD_PER_LONG];
- struct kobject kobj;
-};
-
struct disk_part_tbl {
struct rcu_head rcu_head;
int len;
--
1.8.3.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] genhd: remove dead and duplicated scsi code
2016-12-20 21:38 [PATCH] genhd: remove dead and duplicated scsi code Jon Derrick
@ 2016-12-21 7:50 ` Christoph Hellwig
2016-12-22 18:24 ` Jens Axboe
1 sibling, 0 replies; 3+ messages in thread
From: Christoph Hellwig @ 2016-12-21 7:50 UTC (permalink / raw)
To: Jon Derrick; +Cc: axboe, linux-block
On Tue, Dec 20, 2016 at 02:38:14PM -0700, Jon Derrick wrote:
> blk_scsi_cmd_filter use was deprecated by 4beab5c6 and the SCSI macros
> are duplicated in blkdev.h, both likely reintroduced by a bad merge from
> 540eed56.
>
> Signed-off-by: Jon Derrick <jonathan.derrick@intel.com>
Looks fine,
Reviewed-by: Christoph Hellwig <hch@lst.de>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] genhd: remove dead and duplicated scsi code
2016-12-20 21:38 [PATCH] genhd: remove dead and duplicated scsi code Jon Derrick
2016-12-21 7:50 ` Christoph Hellwig
@ 2016-12-22 18:24 ` Jens Axboe
1 sibling, 0 replies; 3+ messages in thread
From: Jens Axboe @ 2016-12-22 18:24 UTC (permalink / raw)
To: Jon Derrick; +Cc: linux-block
On 12/20/2016 02:38 PM, Jon Derrick wrote:
> blk_scsi_cmd_filter use was deprecated by 4beab5c6 and the SCSI macros
> are duplicated in blkdev.h, both likely reintroduced by a bad merge from
> 540eed56.
Wow, 2008! Applied, thanks.
--
Jens Axboe
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-12-22 18:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-20 21:38 [PATCH] genhd: remove dead and duplicated scsi code Jon Derrick
2016-12-21 7:50 ` Christoph Hellwig
2016-12-22 18:24 ` Jens Axboe
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.