Re: [PATCH V3 7/8] block: allow to allocate req with REQF_PREEMPT when queue is preempt frozen

2017-09-03 Thread Bart Van Assche
On Sat, 2017-09-02 at 21:12 +0800, Ming Lei wrote: > Please let us know if V3 addresses your previous concern about calling > blk_queue_enter_live() during preempt freezing. Do you understand how request queue cleanup works? The algorithm used for request queue cleanup is as follows: * Set the DYI

[PATCH 9/10] [SCSI] bfa: Use ARRAY_SIZE macro

2017-09-03 Thread Thomas Meyer
Use ARRAY_SIZE macro, rather than explicitly coding some variant of it yourself. Found with: find -type f -name "*.c" -o -name "*.h" | xargs perl -p -i -e 's/\bsizeof\s*\(\s*(\w+)\s*\)\s*\ /\s*sizeof\s*\(\s*\1\s*\[\s*0\s*\]\s*\) /ARRAY_SIZE(\1)/g' and manual check/verification. Signed-off-by: Thom