Re: [PATCH v3 1/3] block: simplify calling convention of elv_unregister_queue()

From
Bart Van Assche <bvanassche@acm.org>
Date
2021-12-09 19:00:23
Also in
linux-api, linux-mmc, linux-scsi, lkml
Reply to
Eric Biggers, 2021-12-08
On 12/7/21 5:35 PM, Eric Biggers wrote:
From: Eric Biggers <redacted>

Make elv_unregister_queue() a no-op if q->elevator is NULL or is not
registered.

This simplifies the existing callers, as well as the future caller in
the error path of blk_register_queue().

Also don't bother checking whether q is NULL, since it never is.
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Thread (19 messages) 19 messages, 4 authors, last reply 2021-12-14
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help