On Sat, 2015-07-04 at 14:05 +0300, Sagi Grimberg wrote: > Since a RAM backend device is not really a rotational device, > we set it as is_nonrot=1 which will be forwarded in VPD page 0xb1 > (block device characteristics) response. > > Signed-off-by: Sagi Grimberg <sagig@xxxxxxxxxxxx> > --- > drivers/target/target_core_rd.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/target/target_core_rd.c b/drivers/target/target_core_rd.c > index 723c97a..46d7f1b 100644 > --- a/drivers/target/target_core_rd.c > +++ b/drivers/target/target_core_rd.c > @@ -334,6 +334,7 @@ static int rd_configure_device(struct se_device *dev) > dev->dev_attrib.hw_block_size = RD_BLOCKSIZE; > dev->dev_attrib.hw_max_sectors = UINT_MAX; > dev->dev_attrib.hw_queue_depth = RD_MAX_DEVICE_QUEUE_DEPTH; > + dev->dev_attrib.is_nonrot = 1; > > rd_dev->rd_dev_id = rd_host->rd_host_dev_id_count++; > Applied to target-pending/master. Thanks Sagi! -- To unsubscribe from this list: send the line "unsubscribe target-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html