[PATCH v4, under testing] nvme-rdma: support devices with queue size < 32

Sagi Grimberg sagi at grimberg.me
Wed May 3 09:01:14 PDT 2017


> Hello Jason,
>
> As far as I know the compiler only does that for compile-time constants. In
> this case the divisor (max(queue_size / 2, 1)) is not a compile-time constant.

We could theoretically do a (sig_count & max(queue_size / 2, 1)) but
that would only do well with power of 2 sized queues...



More information about the Linux-nvme mailing list