Re: [PATCH 04/17] block: remove the q argument from blk_rq_map_kern

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

 



On 23.04.25 08:10, Hannes Reinecke wrote:
> On 4/22/25 16:26, Christoph Hellwig wrote:
>> Remove the q argument from blk_rq_map_kern and the internal helpers
>> called by it as the queue can trivially be derived from the request.
>>
>> Signed-off-by: Christoph Hellwig <hch@xxxxxx>
>> ---
>>    block/blk-map.c            | 24 ++++++++++--------------
>>    drivers/block/pktcdvd.c    |  2 +-
>>    drivers/block/ublk_drv.c   |  3 +--
>>    drivers/block/virtio_blk.c |  4 ++--
>>    drivers/nvme/host/core.c   |  2 +-
>>    drivers/scsi/scsi_ioctl.c  |  2 +-
>>    drivers/scsi/scsi_lib.c    |  3 +--
>>    include/linux/blk-mq.h     |  4 ++--
>>    8 files changed, 19 insertions(+), 25 deletions(-)
>>
> Good cleanup. I always wondered why we need to have it.

Because we used to call 'bio_add_pc_page()' in e.g. bio_map_kern()' 
which took a request_queue. But that got changed in 6aeb4f8364806 
("block: remove bio_add_pc_page") to a simple 'bio_add_page()'.

So much for the archeology,
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@xxxxxxx>




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux