Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'block-6.4-2023-05-13' of git://git.kernel.dk/linux

Pull block fixes from Jens Axboe:
"Just a few minor fixes for drivers, and a deletion of a file that is
woefully out-of-date these days"

* tag 'block-6.4-2023-05-13' of git://git.kernel.dk/linux:
Documentation/block: drop the request.rst file
ublk: fix command op code check
block/rnbd: replace REQ_OP_FLUSH with REQ_OP_WRITE
nbd: Fix debugfs_create_dir error checking

+4 -104
-1
Documentation/block/index.rst
··· 18 18 kyber-iosched 19 19 null_blk 20 20 pr 21 - request 22 21 stat 23 22 switching-sched 24 23 writeback_cache_control
-99
Documentation/block/request.rst
··· 1 - ============================ 2 - struct request documentation 3 - ============================ 4 - 5 - Jens Axboe <jens.axboe@oracle.com> 27/05/02 6 - 7 - 8 - .. FIXME: 9 - No idea about what does mean - seems just some noise, so comment it 10 - 11 - 1.0 12 - Index 13 - 14 - 2.0 Struct request members classification 15 - 16 - 2.1 struct request members explanation 17 - 18 - 3.0 19 - 20 - 21 - 2.0 22 - 23 - 24 - 25 - Short explanation of request members 26 - ==================================== 27 - 28 - Classification flags: 29 - 30 - = ==================== 31 - D driver member 32 - B block layer member 33 - I I/O scheduler member 34 - = ==================== 35 - 36 - Unless an entry contains a D classification, a device driver must not access 37 - this member. Some members may contain D classifications, but should only be 38 - access through certain macros or functions (eg ->flags). 39 - 40 - <linux/blkdev.h> 41 - 42 - =============================== ======= ======================================= 43 - Member Flag Comment 44 - =============================== ======= ======================================= 45 - struct list_head queuelist BI Organization on various internal 46 - queues 47 - 48 - ``void *elevator_private`` I I/O scheduler private data 49 - 50 - unsigned char cmd[16] D Driver can use this for setting up 51 - a cdb before execution, see 52 - blk_queue_prep_rq 53 - 54 - unsigned long flags DBI Contains info about data direction, 55 - request type, etc. 56 - 57 - int rq_status D Request status bits 58 - 59 - kdev_t rq_dev DBI Target device 60 - 61 - int errors DB Error counts 62 - 63 - sector_t sector DBI Target location 64 - 65 - unsigned long hard_nr_sectors B Used to keep sector sane 66 - 67 - unsigned long nr_sectors DBI Total number of sectors in request 68 - 69 - unsigned long hard_nr_sectors B Used to keep nr_sectors sane 70 - 71 - unsigned short nr_phys_segments DB Number of physical scatter gather 72 - segments in a request 73 - 74 - unsigned short nr_hw_segments DB Number of hardware scatter gather 75 - segments in a request 76 - 77 - unsigned int current_nr_sectors DB Number of sectors in first segment 78 - of request 79 - 80 - unsigned int hard_cur_sectors B Used to keep current_nr_sectors sane 81 - 82 - int tag DB TCQ tag, if assigned 83 - 84 - ``void *special`` D Free to be used by driver 85 - 86 - ``char *buffer`` D Map of first segment, also see 87 - section on bouncing SECTION 88 - 89 - ``struct completion *waiting`` D Can be used by driver to get signalled 90 - on request completion 91 - 92 - ``struct bio *bio`` DBI First bio in request 93 - 94 - ``struct bio *biotail`` DBI Last bio in request 95 - 96 - ``struct request_queue *q`` DB Request queue this request belongs to 97 - 98 - ``struct request_list *rl`` B Request list this request came from 99 - =============================== ======= =======================================
+2 -2
drivers/block/nbd.c
··· 1666 1666 return -EIO; 1667 1667 1668 1668 dir = debugfs_create_dir(nbd_name(nbd), nbd_dbg_dir); 1669 - if (!dir) { 1669 + if (IS_ERR(dir)) { 1670 1670 dev_err(nbd_to_dev(nbd), "Failed to create debugfs dir for '%s'\n", 1671 1671 nbd_name(nbd)); 1672 1672 return -EIO; ··· 1692 1692 struct dentry *dbg_dir; 1693 1693 1694 1694 dbg_dir = debugfs_create_dir("nbd", NULL); 1695 - if (!dbg_dir) 1695 + if (IS_ERR(dbg_dir)) 1696 1696 return -EIO; 1697 1697 1698 1698 nbd_dbg_dir = dbg_dir;
+1 -1
drivers/block/rnbd/rnbd-proto.h
··· 241 241 bio_opf = REQ_OP_WRITE; 242 242 break; 243 243 case RNBD_OP_FLUSH: 244 - bio_opf = REQ_OP_FLUSH | REQ_PREFLUSH; 244 + bio_opf = REQ_OP_WRITE | REQ_PREFLUSH; 245 245 break; 246 246 case RNBD_OP_DISCARD: 247 247 bio_opf = REQ_OP_DISCARD;
+1 -1
drivers/block/ublk_drv.c
··· 1281 1281 { 1282 1282 u32 ioc_type = _IOC_TYPE(cmd_op); 1283 1283 1284 - if (IS_ENABLED(CONFIG_BLKDEV_UBLK_LEGACY_OPCODES) && ioc_type != 'u') 1284 + if (!IS_ENABLED(CONFIG_BLKDEV_UBLK_LEGACY_OPCODES) && ioc_type != 'u') 1285 1285 return -EOPNOTSUPP; 1286 1286 1287 1287 if (ioc_type != 'u' && ioc_type != 0)