WSL2-Linux-Kernel/drivers/block/drbd
Christoph Hellwig 3e08773c38 block: switch polling to be bio based
Replace the blk_poll interface that requires the caller to keep a queue
and cookie from the submissions with polling based on the bio.

Polling for the bio itself leads to a few advantages:

 - the cookie construction can made entirely private in blk-mq.c
 - the caller does not need to remember the request_queue and cookie
   separately and thus sidesteps their lifetime issues
 - keeping the device and the cookie inside the bio allows to trivially
   support polling BIOs remapping by stacking drivers
 - a lot of code to propagate the cookie back up the submission path can
   be removed entirely.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Mark Wunderlich <mark.wunderlich@intel.com>
Link: https://lore.kernel.org/r/20211012111226.760968-15-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-10-18 06:17:36 -06:00
..
Kconfig
Makefile
drbd_actlog.c
drbd_bitmap.c
drbd_debugfs.c
drbd_debugfs.h
drbd_int.h block: switch polling to be bio based 2021-10-18 06:17:36 -06:00
drbd_interval.c
drbd_interval.h
drbd_main.c
drbd_nl.c
drbd_nla.c
drbd_nla.h
drbd_proc.c
drbd_protocol.h
drbd_receiver.c
drbd_req.c block: switch polling to be bio based 2021-10-18 06:17:36 -06:00
drbd_req.h
drbd_state.c
drbd_state.h
drbd_state_change.h
drbd_strings.c
drbd_strings.h
drbd_vli.h
drbd_worker.c