anolis-cloud-kernel/drivers/s390
Christoph Hellwig b8f1c9a55b block: switch polling to be bio based
ANBZ: #11744

commit 3e08773c38 upstream.

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>
[joe: fix all conflicts for *submit_bio() and blk_poll()]
Signed-off-by: Joseph Qi <joseph.qi@linux.alibaba.com>
Reviewed-by: Ferry Meng <mengferry@linux.alibaba.com>
Reviewed-by: Guixin Liu <kanie@linux.alibaba.com>
Link: https://gitee.com/anolis/cloud-kernel/pulls/4084
2024-11-26 01:40:15 +00:00
..
block block: switch polling to be bio based 2024-11-26 01:40:15 +00:00
char tty: the rest, stop using tty_schedule_flip() 2022-07-29 17:19:28 +02:00
cio vfio/ap,ccw: Fix open/close when multiple device FDs are open 2024-11-12 13:28:27 +00:00
crypto vfio/ap,ccw: Fix open/close when multiple device FDs are open 2024-11-12 13:28:27 +00:00
net anolis: net/smc: Decouple ism_dev from SMC-D DMB registration 2023-10-08 10:09:24 +00:00
scsi scsi: zfcp: Fix failed recovery on gone remote port with non-NPIV FCP devices 2022-02-01 17:25:39 +01:00
virtio virtio: record the maximum queue num supported by the device. 2024-05-15 06:32:36 +00:00
Makefile