Skip to content

Commit

Permalink
Revert r357710 and 357711 until they can be debugged
Browse files Browse the repository at this point in the history
  • Loading branch information
scottl authored and scottl committed Feb 10, 2020
1 parent 7591469 commit dcebfcf
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 26 deletions.
5 changes: 0 additions & 5 deletions sys/cam/ata/ata_da.c
Expand Up @@ -50,7 +50,6 @@ __FBSDID("$FreeBSD$");
#include <sys/proc.h>
#include <sys/reboot.h>
#include <sys/sbuf.h>
#include <geom/geom.h>
#include <geom/geom_disk.h>
#endif /* _KERNEL */

Expand Down Expand Up @@ -1567,10 +1566,6 @@ adagetattr(struct bio *bp)
int ret;
struct cam_periph *periph;

/* TODO: tunable knob */
if (g_handleattr_int(bp, "GEOM::canspeedup", 1))
return (0);

periph = (struct cam_periph *)bp->bio_disk->d_drv1;
cam_periph_lock(periph);
ret = xpt_getattr(bp->bio_data, bp->bio_length, bp->bio_attribute,
Expand Down
5 changes: 0 additions & 5 deletions sys/cam/nvme/nvme_da.c
Expand Up @@ -48,7 +48,6 @@ __FBSDID("$FreeBSD$");
#include <sys/cons.h>
#include <sys/proc.h>
#include <sys/reboot.h>
#include <geom/geom.h>
#include <geom/geom_disk.h>
#endif /* _KERNEL */

Expand Down Expand Up @@ -701,10 +700,6 @@ ndagetattr(struct bio *bp)
int ret;
struct cam_periph *periph;

/* TODO: tunable knob */
if (g_handleattr_int(bp, "GEOM::canspeedup", 1))
return (0);

periph = (struct cam_periph *)bp->bio_disk->d_drv1;
cam_periph_lock(periph);
ret = xpt_getattr(bp->bio_data, bp->bio_length, bp->bio_attribute,
Expand Down
4 changes: 0 additions & 4 deletions sys/cam/scsi/scsi_da.c
Expand Up @@ -1942,10 +1942,6 @@ dagetattr(struct bio *bp)
int ret;
struct cam_periph *periph;

/* TODO: tunable knob for this */
if (g_handleattr_int(bp, "GEOM::canspeedup", 1))
return (0);

periph = (struct cam_periph *)bp->bio_disk->d_drv1;
cam_periph_lock(periph);
ret = xpt_getattr(bp->bio_data, bp->bio_length, bp->bio_attribute,
Expand Down
3 changes: 0 additions & 3 deletions sys/ufs/ffs/ffs_softdep.c
Expand Up @@ -1464,9 +1464,6 @@ softdep_send_speedup(struct ufsmount *ump, size_t shortage, u_int flags)
{
struct buf *bp;

if ((ump->um_flags & UM_CANSPEEDUP) == 0)
return;

bp = malloc(sizeof(*bp), M_TRIM, M_WAITOK | M_ZERO);
bp->b_iocmd = BIO_SPEEDUP;
bp->b_ioflags = flags;
Expand Down
9 changes: 1 addition & 8 deletions sys/ufs/ffs/ffs_vfsops.c
Expand Up @@ -794,7 +794,7 @@ ffs_mountfs(devvp, mp, td)
struct ucred *cred;
struct g_consumer *cp;
struct mount *nmp;
int candelete, canspeedup;
int candelete;
off_t loc;

fs = NULL;
Expand Down Expand Up @@ -1011,13 +1011,6 @@ ffs_mountfs(devvp, mp, td)
}
}

/* TODO: sysctl tunables, runtime modification */
len = sizeof(int);
if (g_io_getattr("GEOM::canspeedup", cp, &len, &canspeedup) == 0) {
if (canspeedup)
ump->um_flags |= UM_CANSPEEDUP;
}

ump->um_mountp = mp;
ump->um_dev = dev;
ump->um_devvp = devvp;
Expand Down
1 change: 0 additions & 1 deletion sys/ufs/ufs/ufsmount.h
Expand Up @@ -131,7 +131,6 @@ struct ufsmount {
*/
#define UM_CANDELETE 0x00000001 /* devvp supports TRIM */
#define UM_WRITESUSPENDED 0x00000002 /* suspension in progress */
#define UM_CANSPEEDUP 0x00000004 /* devvp supports SPEEDUP */

/*
* function prototypes
Expand Down

0 comments on commit dcebfcf

Please sign in to comment.