Re: [PATCH 1/2] ib_srpt: Make srp_max_req_size module parameter use S_IRUGO|S_IWUSR

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Met vriendelijke groeten,

On Sun, Nov 6, 2011 at 1:10 PM, Nicholas A. Bellinger
<nab@xxxxxxxxxxxxxxx> wrote:
> On Sun, 2011-11-06 at 12:46 +0100, Bart Van Assche wrote:
>> On Sun, Nov 6, 2011 at 12:15 PM, Nicholas A. Bellinger
>> <nab@xxxxxxxxxxxxxxx> wrote:
>> > This patch converts the srp_max_req_size module parameter to R/W access
>> > so that it's accessable when built as CONFIG_INFINIBAND_SRPT=y.  This
>> > includes adding srpt_device->max_req_size that is assigned during
>> > srpt_add_one() and referenced directly from there.
>>
>> I'm not sure it makes sense to store a copy of this parameter in the
>> srpt_device structure. If the HCA driver code (e.g. mlx4) is also
>> built into the kernel instead of as a separate module, any changes of
>> srp_max_req_size after ib_srpt and HCA driver initialization finished
>> won't have any effect.
>
> So it sounds like srp_max_req_size with CONFIG_INFINIBAND_SRPT=y is not
> really going to be of much use anyways.  What about just leaving it as
> read-only..?

Another option is to copy the value of that parameter into struct
srpt_rdma_ch at SRP login time. That way any change of that parameter
won't have any effect for active sessions but will have effect for all
future logins.

Bart.
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux