Remove D_CANFREE from sscdisk.c.
I belive it got here by copy&paste and I see no signs in the source code that BIO_DELETE was dealt with correctly and can only wonder what kind of trouble this may have caused.
This commit is contained in:
parent
007e4e6002
commit
ae21d4debd
@ -100,7 +100,7 @@ static struct cdevsw ssc_cdevsw = {
|
||||
/* maj */ CDEV_MAJOR,
|
||||
/* dump */ nodump,
|
||||
/* psize */ nopsize,
|
||||
/* flags */ D_DISK | D_CANFREE,
|
||||
/* flags */ D_DISK,
|
||||
};
|
||||
|
||||
static struct cdevsw sscdisk_cdevsw;
|
||||
@ -189,9 +189,7 @@ sscstrategy(struct bio *bp)
|
||||
|
||||
devstat_start_transaction(&sc->stats);
|
||||
|
||||
if (bp->bio_cmd == BIO_DELETE) {
|
||||
dop = DEVSTAT_NO_DATA;
|
||||
} else if (bp->bio_cmd == BIO_READ) {
|
||||
if (bp->bio_cmd == BIO_READ) {
|
||||
dop = DEVSTAT_READ;
|
||||
sscop = SSC_READ;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user