block: Support passing NULL ops to blk_set_dev_ops()
authorXie Yongji <xieyongji@bytedance.com>
Mon, 23 May 2022 08:46:04 +0000 (16:46 +0800)
committerKevin Wolf <kwolf@redhat.com>
Fri, 24 Jun 2022 15:07:06 +0000 (17:07 +0200)
commitac1fc3a3a93ca57271e4ca6072aa340b30261d1e
tree9da4523e98f784cd2afafe782632f4360b9c8c88
parent618af89e559daf897cc5013d3476a9c41ee76e00
block: Support passing NULL ops to blk_set_dev_ops()

This supports passing NULL ops to blk_set_dev_ops()
so that we can remove stale ops in some cases.

Signed-off-by: Xie Yongji <xieyongji@bytedance.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20220523084611.91-2-xieyongji@bytedance.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/block-backend.c