Re: [PATCH v2 3/3] cxlflash: Virtual LUN support

2015-07-30 Thread Manoj Kumar
Wendy: Thanks for taking the time to review this patch. Comments inline below. - Manoj Kumar On 7/29/2015 5:13 PM, wenxi...@linux.vnet.ibm.com wrote: +/* Update the free_curr_idx */ +if (bit_pos == 63) +lun_info->free_curr_idx = bit_word + 1; Predefined Macros for 63 and 64?

Re: [PATCH v2 3/3] cxlflash: Virtual LUN support

2015-07-29 Thread wenxiong
Forwarded Message Subject: [PATCH v2 3/3] cxlflash: Virtual LUN support Date: Thu, 16 Jul 2015 18:26:57 -0500 From: Matthew R. Ochs To: linux-scsi@vger.kernel.org, james.bottom...@hansenpartnership.com, n...@linux-iscsi.org, brk...@linux.vnet.ibm.com CC: h

Re: [PATCH v2 3/3] cxlflash: Virtual LUN support

2015-07-25 Thread Matthew R. Ochs
Hi Brian, Thanks for reviewing. Comments inline below. -matt On Jul 24, 2015, at 3:15 PM, Brian King wrote: > On 07/16/2015 06:26 PM, Matthew R. Ochs wrote: >> + >> +/** >> + * ba_clone() - frees a block from the block allocator >> + * @ba_lun: Block allocator from which to allocate a block. >

Re: [PATCH v2 3/3] cxlflash: Virtual LUN support

2015-07-24 Thread Brian King
On 07/16/2015 06:26 PM, Matthew R. Ochs wrote: > + > +/** > + * ba_clone() - frees a block from the block allocator > + * @ba_lun: Block allocator from which to allocate a block. > + * @to_free: Block to free. > + * > + * Return: 0 on success, -1 on failure > + */ > +static int ba_clone(struct ba_

[PATCH v2 3/3] cxlflash: Virtual LUN support

2015-07-16 Thread Matthew R. Ochs
Add support for physical LUN segmentation (virtual LUNs) to device driver supporting the IBM CXL Flash adapter. This patch allows user space applications to virtually segment a physical LUN into N virtual LUNs, taking advantage of the translation features provided by this adapter. Signed-off-by: M