[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <x494ni5uipk.fsf@segfault.boston.devel.redhat.com>
Date: Fri, 25 Jan 2013 15:10:47 -0500
From: Jeff Moyer <jmoyer@...hat.com>
To: "Philip J. Kelleher" <pjk1939@...ibm.com>
Cc: axboe@...nel.dk, gregkh@...uxfoundation.org,
linux-kernel@...r.kernel.org, brking@...ux.vnet.ibm.com
Subject: Re: [PATCH] block: IBM RamSan 70/80 device driver.
"Philip J. Kelleher" <pjk1939@...ibm.com> writes:
> From: Joshua H Morris <josh.h.morris@...ibm.com>
> Philip J Kelleher <pjk1939@...ibm.com>
>
> This patch includes the device driver for the IBM RamSan family
> of PCI SSD flash storage cards. This driver will inlcude support for the
> RamSan 70 and 80. The driver presents a block device for device I/O.
Hi,
Your driver does not handle REQ_FLUSH. Does that mean that the
supported cards do not have a volatile write-back cache?
> + blk_size = rsxx_get_logical_block_size(card);
> +
> + blk_queue_make_request(card->queue, rsxx_make_request);
> + blk_queue_bounce_limit(card->queue, BLK_BOUNCE_ANY);
> + blk_queue_dma_alignment(card->queue, blk_size - 1);
> + blk_queue_max_hw_sectors(card->queue, blkdev_max_hw_sectors);
> + blk_queue_logical_block_size(card->queue, blk_size);
> + blk_queue_physical_block_size(card->queue, RSXX_HW_BLK_SIZE);
> + blk_queue_max_discard_sectors(card->queue, RSXX_HW_BLK_SIZE >> 9);
Did you mean to set max_discard_sectors inside the below for loop?
Either way, do you really only support a single hardware sector discard?
> + queue_flag_set_unlocked(QUEUE_FLAG_NONROT, card->queue);
> + if (rsxx_discard_supported(card)) {
> + queue_flag_set_unlocked(QUEUE_FLAG_DISCARD, card->queue);
> + card->queue->limits.discard_granularity = RSXX_HW_BLK_SIZE;
> + card->queue->limits.discard_alignment = RSXX_HW_BLK_SIZE;
> + card->queue->limits.discard_zeroes_data = 1;
> + }
Cheers,
Jeff
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists