Skip to content

Commit b5214c6

Browse files
committed
Merge tag 'nvme-5.10-2020-11-10' of git://git.infradead.org/nvme into block-5.10
Pull NVMe fix from Christoph: "nvme fixes for 5.10: - don't clear the read-only bit on a revalidate (Sagi Grimberg)" * tag 'nvme-5.10-2020-11-10' of git://git.infradead.org/nvme: nvme: fix incorrect behavior when BLKROSET is called by the user
2 parents e1777d0 + 65c5a05 commit b5214c6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/nvme/host/core.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2060,8 +2060,6 @@ static void nvme_update_disk_info(struct gendisk *disk,
20602060

20612061
if (id->nsattr & NVME_NS_ATTR_RO)
20622062
set_disk_ro(disk, true);
2063-
else
2064-
set_disk_ro(disk, false);
20652063
}
20662064

20672065
static inline bool nvme_first_scan(struct gendisk *disk)

0 commit comments

Comments
 (0)