search for: bd_part

Displaying 8 results from an estimated 8 matches for "bd_part".

Did you mean: old_part
2011 May 25
2
[PATCH linux-2.6.18-xen] blkback: don''t call vbd_size() if bd_disk is NULL
...because vbd_size() dereferences bd_disk if bd_part is NULL. Signed-off-by: Laszlo Ersek<lersek@redhat.com> --- drivers/xen/blkback/vbd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff -r 415a9b435fef drivers/xen/blkback/vbd.c --- a/drivers/xen/blkback/vbd.c Mon May 23 18:36:33 2011 +0100 +++ b/drivers/xen/blkback/vbd.c W...
2011 Jun 21
13
VM disk I/O limit patch
...atch rate_watch; + int have_rate_watch; }; blkif_t *blkif_alloc(domid_t domid); diff -urNp blkback/vbd.c blkback-qos/vbd.c --- blkback/vbd.c 2010-05-20 18:07:00.000000000 +0800 +++ blkback-qos/vbd.c 2011-06-22 07:34:50.000000000 +0800 @@ -35,6 +35,11 @@ #define vbd_sz(_v) ((_v)->bdev->bd_part ? \ (_v)->bdev->bd_part->nr_sects : get_capacity((_v)->bdev->bd_disk)) +#undef DPRINTK +#define DPRINTK(fmt, args...) \ + printk("blkback/vbd (%s:%d) " fmt ".\n", \ + __FUNCTION__, __LINE__, ##args) + unsigned long long vbd_size(struct vbd *vbd) {...
2011 Jun 21
13
VM disk I/O limit patch
...atch rate_watch; + int have_rate_watch; }; blkif_t *blkif_alloc(domid_t domid); diff -urNp blkback/vbd.c blkback-qos/vbd.c --- blkback/vbd.c 2010-05-20 18:07:00.000000000 +0800 +++ blkback-qos/vbd.c 2011-06-22 07:34:50.000000000 +0800 @@ -35,6 +35,11 @@ #define vbd_sz(_v) ((_v)->bdev->bd_part ? \ (_v)->bdev->bd_part->nr_sects : get_capacity((_v)->bdev->bd_disk)) +#undef DPRINTK +#define DPRINTK(fmt, args...) \ + printk("blkback/vbd (%s:%d) " fmt ".\n", \ + __FUNCTION__, __LINE__, ##args) + unsigned long long vbd_size(struct vbd *vbd) {...
2020 Sep 01
10
remove revalidate_disk()
Hi Jens, this series removes the revalidate_disk() function, which has been a really odd duck in the last years. The prime reason why most people use it is because it propagates a size change from the gendisk to the block_device structure. But it also calls into the rather ill defined ->revalidate_disk method which is rather useless for the callers. So this adds a new helper to just
2016 Aug 17
20
[PATCH 00/15] Fix issue with KOBJ_ADD uevent versus disk attributes
This is an attempt to fix the issue that some disks' sysfs attributes are not ready at the time its KOBJ_ADD event is sent. The symptom is during device hotplug, udev may fail to find certain attributes, such as serial or wwn, of the disk. As a result the /dev/disk/by-id entries are not created. The cause is device_add_disk emits the uevent before returning, and the callers have to create
2016 Aug 17
20
[PATCH 00/15] Fix issue with KOBJ_ADD uevent versus disk attributes
This is an attempt to fix the issue that some disks' sysfs attributes are not ready at the time its KOBJ_ADD event is sent. The symptom is during device hotplug, udev may fail to find certain attributes, such as serial or wwn, of the disk. As a result the /dev/disk/by-id entries are not created. The cause is device_add_disk emits the uevent before returning, and the callers have to create
2012 Apr 20
1
[PATCH] multiqueue: a hodge podge of things
...o); /* for device mapper only */ /* * If bio->bi_dev is a partition, remap the location */ static inline void blk_partition_remap(struct bio *bio) { struct block_device *bdev = bio->bi_bdev; if (bio_sectors(bio) && bdev != bdev->bd_contains) { struct hd_struct *p = bdev->bd_part; bio->bi_sector += p->start_sect; bio->bi_bdev = bdev->bd_contains; trace_block_bio_remap(bdev_get_queue(bio->bi_bdev), bio, bdev->bd_dev, bio->bi_sector - p->start_sect); } } static void handle_bad_sector(struct bio *bio) { char b[BDEVNAME_SIZ...
2012 Apr 20
1
[PATCH] multiqueue: a hodge podge of things
...o); /* for device mapper only */ /* * If bio->bi_dev is a partition, remap the location */ static inline void blk_partition_remap(struct bio *bio) { struct block_device *bdev = bio->bi_bdev; if (bio_sectors(bio) && bdev != bdev->bd_contains) { struct hd_struct *p = bdev->bd_part; bio->bi_sector += p->start_sect; bio->bi_bdev = bdev->bd_contains; trace_block_bio_remap(bdev_get_queue(bio->bi_bdev), bio, bdev->bd_dev, bio->bi_sector - p->start_sect); } } static void handle_bad_sector(struct bio *bio) { char b[BDEVNAME_SIZ...