# Re: \[RFC\] sd: dynamically adjust SD\_MAX\_WS16\_BLOCKS as per the actual logical block size

- From: Martin K. Petersen \<hidden\>
- Date: 2016-08-16 04:03:08 
- List: linux-block
- Page: https://ratatoskr.run/linux-block/2016/08/6369234
- Thread: https://ratatoskr.run/linux-scsi/2016/08/6369234/t.md

```text
>>>>> "Tom" == Tom Yan [ref] writes:

Tom,

>> 0x7fffff, the maximum number of block layer sectors that can be
>> expressed in a single bio.

Tom> Hmm, so when we queue any of the limits, we convert a certain
Tom> maximum number of physical sectors (which we has already been
Tom> doing)

logical sectors

Tom> to its corresponding maximum number of block layer sectors, and
Tom> then make sure that number does not exceed 0x7fffff, right?

Yep.

-- 
Martin K. Petersen	Oracle Linux Engineering
```
