Re: [PATCH 1/9] block: add a struct io_batch argument to fops->iopoll()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/12/21 11:17 AM, Jens Axboe wrote:
-int bio_poll(struct bio *bio, unsigned int flags)
+int bio_poll(struct bio *bio, struct io_batch *ib, unsigned int flags)
  {

How about using the name 'iob' instead of 'ib' for the io_batch argument? When I saw the 'ib' argument name that name made me wonder for a second whether it is perhaps related to InfiniBand.

+struct io_batch {
+	struct request *req_list;
+	void (*complete)(struct io_batch *);
+};

Function pointers are not ideal in high-performance code. Is there another solution than introducing a new function pointer?

Thanks,

Bart.



[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux