# Re: sd\_setup\_discard\_cmnd: BUG: unable to handle kernel NULL pointer dereference at (null)

- From: Martin K. Petersen \<hidden\>
- Date: 2014-06-26 01:44:11 
- List: linux-raid
- Page: https://ratatoskr.run/linux-raid/2014/06/6627665
- Thread: https://ratatoskr.run/linux-raid/2014/06/6627665/t.md

```text
>>>>> "Lars" == Lars Ellenberg [ref] writes:

Lars> Because the way we do some internal bookkeeping, we announce a max
Lars> discard of 4 MiB.  

Yikes!

Lars> Similar for the WRITE_SAME interface (which we do not properly
Lars> support on the DRBD protocol level yet -- backward compatibility
Lars> concerns -- but intend to support "soon").

Yeah, WRITE SAME can take a long time to complete too. However, we're
typically issuing them 32 megs at a time.

Lars> If we only have a synchronous interface, we will probably have to
Lars> either add some "async wrapper", or defer such submissions to
Lars> worker threads.  I'd prefer to have an async submit path.

OK, I'll chew on it.

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