Unverified Commit 2f4cf035 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files
parents f9f2b4a0 dd9f3c62
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -2038,9 +2038,10 @@ static void nvme_update_disk_info(struct gendisk *disk,

	/*
	 * The block layer can't support LBA sizes larger than the page size
	 * yet, so catch this early and don't allow block I/O.
	 * or smaller than a sector size yet, so catch this early and don't
	 * allow block I/O.
	 */
	if (ns->lba_shift > PAGE_SHIFT) {
	if (ns->lba_shift > PAGE_SHIFT || ns->lba_shift < SECTOR_SHIFT) {
		capacity = 0;
		bs = (1 << 9);
	}